Jump to content

diogo

Moderators
  • Posts

    4,314
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. So, some days later I'm the one who has submission powers in product hunt. They just sent me an invite And... here it is! https://www.producthunt.com/tech/processwire PS: You don't need an invite to register and upvote, and we need those upvotes to appear on the homepage
  2. If someone has a submission power in product hunt, now is the time to talk
  3. I made a module for this sometime ago https://github.com/ocorreiododiogo/ProcessHomeAdmin Should still work.
  4. Welcome to the forum, by the way
  5. They are beautiful, both, the new repeaters and the matrix. Beautiful!!
  6. What about: foreach($page->rootParent->children as $writer) {
  7. If I understand well, you want to have a dropdown for each user. If so, you could do this: foreach($pages->get("/articles/")->children as $writer) { echo "<ul>"; // your dropdowns are lists, right? foreach($child as $article) { echo "<li><a href='{$child->url}'>{$child->title}</a></li>"; } echo "</ul>"; }
  8. André Vilas Boas?
  9. @flydev are you sure you want to have an unfinished site as your signature? Although the domain is pretty cool
  10. I don't have an answer to this question, but I suspect it has to do with the very nature of PW that attracts people that are more focused on work and GTD and less worried about social media. At least I like to think that's the reason
  11. After some puzzeling you found out how to do a navigation with PW https://github.com/ryancramerdesign/ProcessWire/blob/dev/site-beginner/templates/_head.php#L28
  12. Did you consider animating the scroll with something like this http://plugins.compzets.com/animatescroll ? I think it actually makes it more obvious what's happening when navigating the single page.
  13. I hope the products were nice Really? That's crazy! Last night was when we were finishing this, maybe there was some telepathic transmission On the other side, this is a much smaller download than a video. And it's responsive. Right!
  14. There's no include() function in javascript. This is what you want: <script src="<?php echo $config->urls->templates?>assets/js/jquery.easing.1.3.js"></script> <script src="<?php echo $config->urls->templates?>assets/js/script.js"></script>
  15. Hey Guys, just wanted to wish happy holidays to all of you from Erika and me! ...and also share a small animation we did to celebrate the occasion: http://ed-works.com/christmas2015/ (this is pure CSS, there's no JS involved)
  16. Try it out and let the error message tell you
  17. Glad I helped. I meant the most common way of writing loops in PHP. Using this same example: <?php foreach($page->children as $child) { foreach($child->images as $image) { echo $image->url; } } The for you used is common for when you are mixing PHP and HTML. Like this: <?php foreach($page->children as $child): ?> <article> <h2>Images from page: <?=$child->title?></h2> <div class="images"> <?php foreach($child->images as $image): ?> <img src="<?=$image->url?>" /> <?php endforeach ?> </div> </article> <?php endforeach ?>
  18. Try: <?php foreach($page->children as $child): foreach($child->images as $image): echo $image->url; endforeach; endforeach; ?> I kept the code similar to what you had so you understand the differences, but way of writing PHP is more suitable if you want to alternate PHP and direct HTML. For a simple echo it's better to just use brackets. I'm actually surprised that you don't get a PHP error with that code
  19. Thanks ceberlin. I wrote on mobile and my answer came a bit short.
  20. Did you add the url name for each language on the homepage settings?
  21. Or check if Ace is installed, and if not add from a cdn http://cdnjs.com/libraries/ace/
  22. Greatly useful module guys, thanks! Just used it to provide a list of collected emails for simple copy/paste into send field return $page->children->implode(', ', 'email'); Couldn't get any simpler than this! PS: of course it would be great to have ACE on the code field like i Hanna Code
  23. mr-fan, do this with every hardcoded string, and people can start translating it __('string') If there are lots of repetitions, maybe it's interesting to follow the suggestions from here https://processwire.com/talk/topic/10447-using-translatable-strings-across-template-files/
  24. Powered by <a href="http://processwire.com">P<span class="no-mobile">rocess</span>W<span class="no-mobile">ire</span></a>
  25. Oops sorry, I had a get where it should be a find.
×
×
  • Create New...