Jump to content

formmailer

Members
  • Posts

    319
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by formmailer

  1. I do think that these tutorials are very useful for new users. And sometimes even for somewhat more experienced users. It's definitely worth to update them where needed. And even add some more that cover other areas. I especially liked the idea of showing how to combine several things, like in the image tutorial: show how to display images, show how to make thumbnails and to finally an example on combining these things into something that is useful for many. /Jasper
  2. My mistake, sorry! I updated my example. Now it seems to work on your site. $n is just a counter, which is zero before we begin. $n++ is just increasing it with one. You actually don't need it, but it can be nice if you want to echo the picture number, something like this: <?php echo "Image $n: {$image->description}"; Which would result in: Image 1: Description of image 1 Image 2: Description of image 2 etc. /Jasper
  3. You could do something like this to display all images: <?php //Display images if available if(count($page->images)) { echo '<div id="gallery">'; $n = 0; foreach($page->images as $image) { $resized_image = $image->size(236,225); echo "<p><img class='photo' src='{$resized_image->url}' alt='{$image->description}' width='236' height='225' />"; echo "<br />{$image->description}</p>"; $n++; } echo "</div>"; } More examples are available here: http://processwire.com/tutorials/quick-start/images/ This is also a useful forum topic: http://processwire.com/talk/index.php/topic,97.0.html
  4. I just updated the Dutch translation (https://github.com/formmailer/nl-nl-Processwire) and the Swedish translation (https://github.com/formmailer/se-se-Processwire). I added ProcessPageClone to both of them. //Jasper P.S. The Dutch translation for "pages" is "pagina's". This works fine everywhere except in the breadcrumbs of the admin: Is it possible to fix this small encoding issue?
  5. I don't have access to my computer just now, but if I recall it correctly there is a note about this when you have the date picker selected. Something like that it will be changed to your output format when saving the page. Is this what you meant? /Jasper
  6. Did you make the assets folder writable? Processwire needs to be able to write into this folder (or actually it's subfolders). /Jasper
  7. Thanks Ryan. That might be easier (considering my lack of javascript knowledge, which reminds me once again that I should learn it....).
  8. Yes, I was thinking of that one too. I'll take a look at it and "steal some code". ;D
  9. While thinking about it one more time, it may not be needed to change the behaviour. I could just add a datefield to the template with a default date today and change it manually if the page gets updated afterwards. Or maybe I could make a module that asks if this date should be updated when the page gets saved through the admin. Is there a hook for admin saves? /Jasper
  10. This is exactly what i meant, but in my case I do have comments on the page. I agree with apeisa that creating exceptions just for comments might not be the way to go. It might even cause problems for others who use the modified date. Maybe an additional field like $page-admin_modified would be a solution? The best way would of course a change in the comments module (instead of something in core), so that it doesn't change the pages modified date. But I don't think this is possible, is it? Just now it's just the comments module, but we'll probably get more modules that allow visitors to change things in a page (maybe the can place a marker on a map or they canupload a photo) and these modules will have the same issues. /Jasper
  11. This works great, Ryan. Forget my icons ;D, this is what I/we needed and I immediately spotted one translation I missed in the Dutch language files. (fixed and updated it on Github). /Jasper
  12. I am not sure if the following should be considered as a bug or not, but it was somewhat unwanted: I sorted my news pages by modified date, which would make that, if I modified one page it would be on top again. Now I realized that if someone writes a comment using the comments module, the page is modified as well. In this case I can work with the created date, but I can think of situations where this isn't an option. Would there be a way around this? /Jasper
  13. True, but as a colorblind person I should warn for red and green. These colors can be quite confusing for users with colorblindness. /Jasper
  14. How about not showing the icons by default, but add a "check translations"-button that checks for abandoned and new translations and displays the icons? That means that the heavyweight process only needs to run when you really want it to run. /Jasper
  15. Hi Ryan, The idea of abandoned/new translations would definitely work (great thinking!!), but, in my opinion, you would need one more thing: an icon (and maybe a text) that triggers the translator. Maybe something like the image below (and of course with a different icon for new translations 8)) /Jasper
  16. Would it be possible for translators to see if change in Processwire require changes in the translations? Let's say you decide that you add something to the ProcessProfile-module, e.g. you add a field for Telephone number. How would a translator know that he/she should update the translation? If you had a "default English" translation, the translator would see a change there... but since this default translation doesn't exist (for good reasons I think) this trigger doesn't work. So we need something else... That's easy enough. I am glad that it will be so easy. /Jasper
  17. I would love to implement this, since it would be of great use for my SchedulePages module, but unfortunately my jquery knowledge is 1 on a scale of 1 to 100, so I'll have to leave this to someone else. But I really would like to know how it should be done.... /Jasper
  18. My first response would be: as much as possible, but with English as a fallback (just like it is now), so if there is no translation available for a module or something else...no problem PW will continue to work as smooth as always. But it does mean more work for the translaters. But, maybe even more serious, it might require that PW will use the language files for English as well, no more US-English in the code. ;D In this way translators can keep the translations up to date with the English files, which wouldn't be possible otherwise. A large disadvantage might be that the module development becomes more difficult or at least different and it would require very good documentation about how you make your modules multi-lingual. And every module should at least contain English language files. All of the above would have a major impact on the PW community... but it might be worth it. /Jasper
  19. I was sitting on the train without having much to do so I decided to finish the Swedish translation. I am not a native-speaker, so the translation will contain errors, but we will find them when the translation is being used. /Jasper Edit: Added even this translation to Github: https://github.com/formmailer/se-se-Processwire se-se.zip
  20. Pete's solution is probably the best. Another workaround would be to move the page out of the ordinary pagetree and place it under it's own parent (eg. dontshow). That would allow you to do the following: list all pages in the navigation except those with parent "dontshow". /Jasper
  21. Looks very good, Soma! It gets better and better, even when you think it can't get any better.
  22. Just added/updated my modules to/in the list. /Jasper
  23. Ryan, Would it be possible to add a timepicker to the datepicker for Datetime fields? Maybe you could use this? Adding a Timepicker to jQuery UI Datepicker, http://trentrichardson.com/examples/timepicker/ /Jasper
  24. Thanks Ryan, I didn't know that creating the new fields was so easy. I leave uninstalling the fields to the user, like you suggested. I had the following idea regarding the schedule tab. It would be very nice if the plugin could add a "Do you want to enable scheduled publishing for this template-checkbox" on the Edit template page. When this checkbox is checked a tab called "Schedule" should be created and it should contain the publish_from and publish_until fields. Would it be possible to do something like this? I think this would be more user friendly than selecting templates in the module config. I know how that feels. /Jasper
  25. This plugin module might help you out: http://processwire.com/talk/index.php/topic,280.0.html /Jasper
×
×
  • Create New...