• Content Count

  • Joined

  • Last visited

Community Reputation

10 Good

About gregory

  • Rank
    Jr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  1. gregory

    @flydev thank you!
  2. gregory

    Hi @flydev, have you got to test it with Form Builder? Thank You.
  3. gregory

    Thanks @kongondo, it works perfectly!
  4. gregory

    Hi guys. I would like to show only the first image as a preview of a slideshow. The code below shows the first image but is repeated. Do you know a solution? Thank you //Call image foreach($story->galleria as $img) { echo "<img src='{$story->galleria->first()->url}' alt='{$story->galleria->first()->description}'>"; }
  5. gregory

    Hi guys, I need help. how do I translate Next Page? <?php if($page->next->id) {echo "<div class='float-right'><a class='button' href='{$page->next->url}'> Next Page </a></div>";} ?> I usually use this: <?php $lang = $user->language->name; if($lang == 'default') {echo "Next Page";} else {echo "Pagina successiva";} ?> or <?php echo __("Next Page"); ?> Thanks
  6. gregory

    Hi, does the module also support multiple languages?
  7. gregory

    Now the new websites I build them only with Processwire. It is a powerful CMS and the community is very serious and professional.
  8. gregory

    To be exact, I did this: if(count($story->imagefieldname)) { ... } Thank you again!
  9. gregory

    Thanks so much! Now it works perfectly. Can I offer you a coffee?
  10. gregory

    It is right (sorry I come from WP). But in my case I have a page with a list of articles and the image field is also called in the article that has no image.
  11. gregory

    Thank You for your response. In my case I need to write this, because I am in the post archive: if ($ story-> imagefieldname) { ... } But it does not work as it should because it recalls an image in other posts ...
  12. Hi guys, how can I do with php to show the div containing the image (if the image exists)? Thanks for your help.
  13. gregory

    Hi guys, is it possible to set a menu item that points to an external url? Thank you
  14. gregory

    Thank You @Zeka I solved with Code Internationalization (i18n)
  15. Hi, I'm working on a bilingual site (it / en). I would need to automatically translate the classic "Continue reading". How can I do? Thanks in advance. <?php $stories = $page->children("limit=3, sort=-date"); foreach($stories as $story) { echo "<div>"; echo "<h2><a href='{$story->url}'>{$story->title}</a></h2>"; echo "<div>{$story->summary}</div>"; echo "<a href='{$story->url}'>Continue reading</a>"; echo "</div>"; } ?>