Jump to content

diogo

Moderators
  • Posts

    4,314
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. Hello and welcome! The line echo "<ul>$out</ul>"; should be outside the foreach. Like this: foreach($albums as $album){ $out .="<li><a href='{$album->url}'>{$album->title}</a></li>"; // <- not here } echo "<ul>$out</ul>"; // <- but here
  2. Bram, if you read a bit through the forum you'll see that this is all about writing code. If you don't want to use an oven to make bread, you will go to the bakery and buy it ready You can also buy an oven and learn how to use it of course. The pro backers at the forum will be there for you
  3. Hi and welcome to PW bram, Q1. The tabs are achieved with jQuery UI https://jqueryui.com/tabs/, and they are a front end thing, not something particular to ProcessWire. All you have to do is follow the instructions there, and build the wanted markup with PW. Of course jQuery Ui is not your only choice for this http://www.jqueryrain.com/example/jquery-tabs/ Q2. Yes, with lots of work. And no, there are no modules for that.
  4. sorry to interrupt the talk about teflon guys If you want a set of pages it's generally better to use find() and try to do everything with one selector. It's actually a nice exercise to try to achieve complex sets of pages with only one selector edit: what I'm calling "one selector" above, is not actually one selector, but a group of selectors in one find().
  5. Nice! Small point of confusion for me is that the nav elements with dropdowns still behave as links. I would deactivate the hover color and the pointer cursor on those. Edit: I have to say that I absolutely love your website
  6. $articles = $pages->get(1133)->children("limit=4")->sort("-article_date"); The problem is that here you are doing it in this order: children("limit=4") -> get the 4 first children sort("-article_date") -> sort them When what you want to to is get all the children sort them limit them Even better would be to do it with one selector so you can do all that at the same time and at the DB level. Like this: $articles = $pages->find(parent=1133, sort=-article_date, limit=4);
  7. bbeer, I was in a hurry and didn't explain something. You don't have to use the IDs in this case. Same thing could be achived by: $parents = $page !== $page->get('/holidays/') ? $page : $page->children; and, in the selector; $reisen = $page->find("parent=$parents, sort=reise_abfahrt"); Just for reference
  8. $p_id = $page->id !== (hollidays id) ? $page->id : $page->children; Written on the browser and not tested, but theoretically this should work. This is what it does: If we are not on the "hollidays", page parent is this same page, if we are on the "hollidays" page, parents will be all it's children ( $page->children will output something like this: 342|654|877|998 )
  9. You can use PW's pagination modu... well, kongondo beat me at it I can only add that you can apply a infinite scrolling plugin to the pagination http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/
  10. This works great for me: http://processwire.com/api/include/ On that example Ryan creates a executable file, but you can as well create a PHP file anywhere you want on the server and do the same: <?php include("/path/to/processwire/index.php"); // Do anything you want with PW. Remember to use wire('pages') and all the likes instead of $pages After that you can run it in the terminal like this: php path/to/your/file.php Or for your cronjob: @hourly php path/to/your/file.php You can even put some echo's on the file for debugging purposes and see them in the terminal. That worked great for me with scripts tat created hundreds of pages in one go.
  11. And there you have it, the easiest multilanguage website in the history of CMSs
  12. I think it's a nice design, Designers should show of their skills on their own websites I also notice some JS quirks though. The dark background not always works, and I would much prefer "click/animation" to the dragging. A detail that I would definitely change is the italic "manifesto". I get the feeling that that's an artificial Italic and not the one designed for the typeface (the strange diagonal dot gave me that clue)
  13. Try also to replace the files from the module by new ones. Might be that one is corrupted
  14. Two European choices would be https://www.cloudcontrol.com/ and http://fortrabbit.com/
  15. Everytime I use a grid system, I find myself having too much work fight some inflexibility, but in most part I enjoyed http://neat.bourbon.io/ with best being that I didn't have to do absolutely anything in the markup. Work is 100% done in the stylesheet.
  16. Welcome to the PW world Klauss
  17. Not necessarily. If only 3 of their people took the day of to continuously renew their dynamic IP and vote, let's say it takes 20 seconds to get a new IP and 10 seconds to vote, they would have 6 votes in each minute. Not saying this is what is happening, but you don't even need a script for that. This could fall into trying to "game the contest for your app" but who can say that it's the owner of the application and not some crazy fans doing it?
  18. I know you know, but some people might not know yet
  19. Your IP already voted for this application, not you. Funny system, if my router renews the IP with the internet provider I can vote again, but in exchange, the new owner of my old IP can't. Today I'm working at the library, so I'm free to vote again. Soon I will make a coffee break and might as well take the computer to have yet another vote. Yes, clever voting system this from Bitnami...
  20. Just received an email with these great news. Following the recent acquisition of Jilion by Dailymotion, their main product SublimeVideo is now for free
      • 3
      • Like
  21. try this: $current_page->get($field) PS: on mobile
  22. Alice, not all the pages have to be multilingual. You can perfectly make almost all the website with multilanguage fields and multilanguage URLS and have two different pages for the blogs. On a less technical tone. Have you considered having only one page for the blog with all the posts (EN, ES and both), giving the user the possibility to filter by only one language if that's all they know, but giving the possibility to those that understand both languages to have access to all the content.
×
×
  • Create New...