-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
You're using tabs in your code, for constancy using spaces is better. Thanks for creating this kongondo.
-
Impressive ! On the home page I was clicking the covers, expecting a click (link), maybe you could add some JS magic to trigger a click on the link. Or make .entry-innerwrap the link.
- 13 replies
-
- 1
-
- datatables
- structured data
-
(and 3 more)
Tagged with:
-
You could also try to copy the contents of the effected file, paste it in a textarea, then trow away the affected file, create one with the same name, select and copy the pasted text from the textarea and paste it back to the newly created file, press save.
-
I hope they'll ask WillyC to make one for them :-P
- 12 replies
-
- 12
-
Or if you use a Mac use TextWrangler or BBEdit to get rid of those gremlins with the “Zap Gremlins” function.
-
This module stated that it is not compatible with PW2.5 but so far haven't seen any issue with ProcessWire 2.5.21 dev. I'm sure i'm not the only one using this module so updating the compatiblity with 2.5 looks fairly save to me. Thank for this awesome module.
-
I leveled your posts to likes ratio Great you like the module !
-
Wish: Make Template::filenameExists hookable
Martijn Geerts replied to Oliver's topic in Wishlist & Roadmap
<spam> Maybe the new addition Change Page Template in Fieldtype Select File could help you out. What it does is render the selected template instead of the normal template file. So it's possible to have no template file for the page template, thus not viewable, but after selecting a file and page save, the page is viewable with the selected one. </spam> -
I love it Diogo !
-
Cannot republish users without password change
Martijn Geerts replied to Ivan Gretsky's topic in General Support
Think you're right and I'm totally wrong, sorry Thanks for your respond LoastKobrakai. -
Cannot republish users without password change
Martijn Geerts replied to Ivan Gretsky's topic in General Support
It's not a bug, it's how Inputfields work. They compare the value stored in the database with the value from the form. ( ___processInput methode) When the two don't match, then $this->trackChange('value') is called that tells PW to change the value and thus the password to. The easiest way to get around this is to handle unpublished users your self. (Not via admin or with custom module) Or you could ask ryan to change this behaviour. Probably not really difficult to implement. -
FieldtypeSelectFile & InputfieldSelectFile
Martijn Geerts replied to Martijn Geerts's topic in Module/Plugin Development
Just pushed a (major) update which adds a new feature: Change Page Template. Change Page Template: Just before the Page::loaded event the selected file is set as template file for the page. This enables you to have multiple file templates for the same page, selectable by the editor. This setting can only be applied once per a page and folders are exluded from the select inputfield. Note that a page with no associated template file will render fine with a selected file. + Changed the sorting from SORT_NATURAL flag to the natcasesort function because the flag requires PHP 5.4.0 or higher. First post is modified & please report issues. -
FieldtypeSelectFile & InputfieldSelectFile
Martijn Geerts replied to Martijn Geerts's topic in Module/Plugin Development
@Macrura: I like your suggestion so updated the module with an option to use SORT_NATURAL on the options of the select. // Natural Sort (NOT checked) image_1.jpg image_12.jpg image_21.jpg image_4.jpg // Natural Sort (checked) image_1.jpg image_4.jpg image_12.jpg image_21.jpg -
Nice one Diogo But it needs a ltrim or something. $last = $pagearray->pop(); echo ltrim($pagearray->implode(', ','title') . ' & ' . $last->title, ' & ');
-
Good one (didn't thought about that) on the other-hand that is how arrays work. You could use the array_values function to reset the keys of the array. $pagearray = array_values($pagearray->getArray());
-
One for https://processwire-recipes.com/ Output a Pagearray as: beer, rum, wine & whisky (note the '&' and don't get drunk) $count = count($pagearray); foreach ($pagearray as $key => $p) { $divider = ($key + 1 === $count) ? ($count === 1 ? '' : ' & ') : ($key === 0 ? '' : ', '); $out .= $divider . "<a href='$p->url' class=''>$p->title</a>"; } echo $out;
-
shandy yeah ! And when not available we drunk "Sneeuw Witje" (7up + beer)
-
I was 12 and parents allowed me to drink some beer (occasionally). And when I was 15 it was perfectly normal to drink beer and no issues getting it (anywhere).
-
There was something with the prefix names (not created) in PIM in previous dev version. Haven't tested latest 2.5.19, so I suspect it was a core issue. I will do some test tonight for CroppableImage.
-
Module: FieldtypeTime & InputfieldTime
Martijn Geerts replied to netcarver's topic in Modules/Plugins
I love it Steve ! -
I experience problems with 'prefixes' or that prefixes are not set at all. So maybe there's a core issue and not directly related to PIM or Croppable Image.
-
Module Page Image Manipulator | API for 1 & 2
Martijn Geerts replied to horst's topic in Modules/Plugins
There's a weird thing going on or I must do something silly. (dev 2.5.18) /** * Options need to be set, if not I see the below error: * Error: Exception: Error when trying to save the MemoryImage: we have no Targetfilename! ... * (weird I guess) * */ $options = array('outputFormat' => 'jpg'); // Call PIM $pim = $image->pimLoad("bright", true)->setOptions($options)->contrast(100)->brightness(100)->pimSave(); /** * There's no prefix in the filename of the image (should be 'bright' I guess), * Now the original image is overwritten every time, after 3 or 4 page loads the image will be blank. * */ /** * Setting setTargetFilename() in the PIM call and PIM works as expected. * */ $watermark = $page->rootParent->png; $assets = str_replace($image->ext, '', $image->filename) . "video.150x112.jpg"; $pim = $image->size(150, 112)->pimLoad("video", true)->setTargetFilename($assets)->watermarkLogo($watermark, 'center', 0)->pimSave(); $image = "<img src='$pim->url' />"; ---I've spend a few hours to debug, but can't find any clue. -
Tnx @Horst...
-
That one is for @horst I guess, thanks for finding !
-
@Adrian: Makes sense and I hear you. Have been sick for a looong time but feeling a little bit better after a week of antibiotics. This week I'll dive in your 'issue'.