Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Hi Alex, Welcome to ProcessWire and the forums... Not sure what error you are getting but I am guessing the problem is the ->id part. A $pages->find will return and array of pages (i.e. there will be multiple ids); so, you only need $pages->find("age>$minAge"). You can then iterate through them. See examples here: http://processwire.com/api/variables/pages/ Secondly, nothing to do with your error, but you need to sanitize your input values first. In this case, you need to do at least this: $minAge = (int) $input->get['minAge']; The above are quick examples...you might need to sort out your double versus single quotes in the selector...I often forget which is which ...I might have missed something....others will correct if I did
  2. What do you mean by no success? I also see that you haven't rendered your form...i.e. echo $form->render();//or return if in a function...
  3. kongondo

    World Cup 2014

    Very tense game that was. Commiserations my Dutch friends..... As for Argentina (or the Dutch for that matter)....I don't see them going past the Germans. Barring the impossible, the Germans have it! Best team of the tournament IMO.
  4. kongondo

    World Cup 2014

    That's the problem with depending on one player (Neymar)...but yesterday they missed Thiago Silva even more! I still think Germany would have beaten them with these two players around....Brazil never really showed up at this WC and let emotions get in the way too many times...
  5. kongondo

    World Cup 2014

    Yes...it was very painful to watch...I was expecting 1 - 0 or 2 -1 to Germany....not the humiliation we saw!
  6. kongondo

    World Cup 2014

    Uh, what just happened??! German efficiency in overdrive! Well done guys, sorry Brazil!
  7. Mike, Thanks for the article. I haven't finished reading it yet, but it is looking good. I am still on page 1 and noticed this important typo... "...and why we prefer the latter" should be "...and why we prefer the former"
  8. Ye of course ...it was just an example...but Patrick has now solved it
  9. Shorter..... foreach ($pages->get('/about-us/meet-the-team/')->children as $child) { //do you stuff }
  10. What you are trying to do is called Bootstrapping. You can easily bootstrap PW in other apps. Have a read here: http://processwire.com/api/include/ I don't know if you know this but you can also 'separate logic from content' by just using ProcessWire itself...PW is also a PHP framework not only a CMS. . There's also lots of posts about MVC around the forums...
  11. Wow! No words - thanks Avoine and Ryan
  12. @Adrian, Does what it says on the tin. No errors and the id of the assets/files folder where the zip is stored matches id of Migrator page..
  13. Tell me what to do and I'll test. There's 9 pages in this thread and I don't know where to start
  14. For the curios, auto-publish date will either have to be set via API using a small auto-load module triggered via cron or via the module SchedulePages. As stated above, I am yet to decide which route to take...
  15. I haven't made a decision on this yet. On the one hand I don't want to reinvent the wheel; why not just use SchedulePages. On the other, I am a bit wary of tying an important functionality of Blog to a third party module that is not part of the core. In case things were to break in the future and they were not fixed (no offence meant to Jasper), that would leave Blog users hanging.....Maybe I am being over cautious. I'll make a decision soon... Admittedly I currently have no idea how I could implement such a feature and to be honest, I haven't thought much about it. Where would the posts, tags and categories live on the tree for the different blogs? It could get messy very quickly. Anyway, any and all ideas are welcome, thanks!
  16. Hi Rickm, Glad you are liking the module. URI: I see your point. There was a similar request a couple of posts further up. My response then and still is that this is one of those things where people have different preferences. Sorry, for now, I am leaving it up to the user to manipulate the URL segment if they so wish. Publish date/time: I haven't had time to implement this yet (sorry, distracted by football currently ) but it's on my TODO list. Thanks!
  17. Guys, Sorry I have been rather quiet in the recent past. You may have noticed I am in holiday mode and have been following, rather keenly, the trajectory of a certain spherical leather object ....Two more weeks to go and I should be back in play....(forgive the pun )
  18. Adrian, you can already change the author of the post..unless am not getting you? Check the settings tab when editing a blog post page
  19. Yes...that trick has been around for ages thanks to the you know who
  20. kongondo

    World Cup 2014

    Great penalties from both Costa Rica and Greece! What a comeback for CR after going 1 man down! Well, well, Shaheen the camel predicted this correctly....again!
  21. kongondo

    World Cup 2014

    Lucky Dutch!!! Congrats anyway.... Oh, by the way, I downloaded Luis Suarez's most memorable career moments. It didn't take long; it was only 3 megabytes (stolen from twitter)
  22. Yes, you can use the selector that way (i.e. | will not work, but multiple declarations are fine)...although in your example, I don't see the need of the State since what you really want are the City's children? Meaning, you don't actually need has_parent but $variable->children() ? Edited: Clarifications
  23. kongondo

    World Cup 2014

    One last Suarez one... http://www.bbc.co.uk/newsbeat/28014318
×
×
  • Create New...