-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
The possibility is that Nikola will not read your post. Maybe he already addressed this issue, maybe not. Better to contact him about it.
-
Create Templates *.php in admin section
Martijn Geerts replied to daerias's topic in Wishlist & Roadmap
Sometimes I use a textarea field and put key | value pairs on each line. Those can be explode("\n", $page->textarea) in your template. -
str_replace("", "smile.gif");
-
I see, your code needs braces & closing parentheses.
-
Module HelperFieldLinks - field and template edit shortcuts
Martijn Geerts replied to Soma's topic in Modules/Plugins
The notices comes from the all the 'roles' arrays. I don't see them anywhere in the helper text (weird that they're bugging me). These are: editRoles, addRoles, createRoles & roles. I changed the line 156 to this prevents the notices. if(is_array($data_value)) $data_value = implode(" ", $data_value); $settings_str .= "<h1>$data_key:</h1> $data_value<br/>"; -
Module HelperFieldLinks - field and template edit shortcuts
Martijn Geerts replied to Soma's topic in Modules/Plugins
Update fixed the ‘notice’ issue. Tnx again Soma ! -
Create Templates *.php in admin section
Martijn Geerts replied to daerias's topic in Wishlist & Roadmap
I don't see any advantage in creating PHP in a browser. Can't remember how may times I pressed tab in a browser when I was editing inline on MODX sites. Or how many times spellchecking didn't like my function names and put spaces between it. etc. etc. I really prefer mounting a FTP disk or work local with a text editor of my choice. Mainly that's Sublime, or sometimes BBedit for heavy text manipulation. Ryan did a great Job with Hanna Code. (If I can avoid Hanna Code i will) But even with the nice ACE editor inside, I will use a text editor & paste the results back. -
Module HelperFieldLinks - field and template edit shortcuts
Martijn Geerts replied to Soma's topic in Modules/Plugins
@Soma great addition ps, There's a notice on line 80: Array to string conversion. -
@adrian: That looks nice. I think we all struggle with 'how to insert images'. If there's a way to restrict most of the image properties, then it's a good way to go in my opinion.
-
Adding/uploading audio/video files to pages (media manager)
Martijn Geerts replied to motionmindz's topic in Getting Started
<motionmindz> would like not to use a Flash audio player. Is there a better player for PW ? </motionmindz> I just pointed to a audio player written with javascript. Has nothing to do ProcessWire it self. Just that it worked great for me. -
Maintaining the format of the html tags.
Martijn Geerts replied to alxndre's topic in Getting Started
Agree with ryan here. Having no space between tags has an other advantage. Take the following ul li example I created on jsbin. Here you can see we don't have the annoying whitespace gap between li items. Normally for static positioned elements the white-space or a multitude of whitespaces is converted to a little space between inline elements. -
Adding/uploading audio/video files to pages (media manager)
Martijn Geerts replied to motionmindz's topic in Getting Started
I've used audiojs. Works great, using HTML5 tags & fall back to flash for old IE. -
You get a like for your response. (Do yourself a favour, invest some time in PHP. Starting is hard, the rest will follow!)
-
Agreed with Ryan, and could read it. ( living 10 kilometers from the German border, listening funkhaus europa every day ) Wonderful article, Thanks for you effort !
-
Maxlength of characters in a textarea field
Martijn Geerts replied to dazzyweb's topic in Getting Started
Just paste in a way to big Lorem Ipsum text. (or what ever you want to paste) There's the difference. -
Maxlength of characters in a textarea field
Martijn Geerts replied to dazzyweb's topic in Getting Started
Thanks adrian, The advantage of the javascript truncated option is a visual response for the editor. He can see how many characters he has left. I wanted this for a Meta Description field. Also used it in an intro text telling 400 characters gives the best visuals, but 500 are allowed. Then when there are 100 to go. The editor knows it's looking good. Truncate will truncate when the limit is reached, the unchecked option will revert to the old text previously inserted. -
Lollypops are sweet !
-
Hi Marc, Thank you very much adding the truncate option & and the detailed description for the path to follow using git. Many thanks, Martijn
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
This might be an explanation: There might be other fields or in your template that cause the problem or somthing's wrong with your page name. $page->save("images") only saves the field, not the whole page.
-
// maybe this works: $schedules = $page->schedule_item; $count = $count($schedules); echo "<div class='row'>"; foreach($schedules as $key => $schedule_item) { $class = ((($key + 1) % 3) == 0) ? 'third' : 'other'; echo "<article class='{$class} col'>"; echo $schedule_item->body; echo "</article>"; if($class == 'third' && ($key - 1) < $count) { echo "</div><div class='row'>"; } } echo "</div>";
-
Something like this: foreach($page->schedule_item as $key => $schedule_item) { $class = ((($key + 1) % 3) == 0) ? 'third' : 'other'; echo "<article class='{$class}'>"; echo $schedule_item->body; echo "</article>"; } Didn't test it, so could be some bug in there.
-
Done, Thanks Diogo
- 67 replies
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Great Module ! I just added a setting to truncate the inserted text instead of revert to the old text. I wished to do it the Gig Hub way, but I don't understand how to do that. I've put the changed module on my github account. ( sorry ) If you like it, maybe you can add it to your TextareaCounter module.
- 67 replies
-
- 2
-
-
- Inputfield
- UI
-
(and 2 more)
Tagged with:
-
Drag n drop sorting over paginated results
Martijn Geerts replied to leftblank's topic in General Support
There's no easy way to do this. The tree don't know the other pages until the link is clicked. -
Check if your /site/assets/sessions/ folder has write access.