Jump to content

kongondo

PW-Moderators
  • Posts

    7,479
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by kongondo

  1. Ye of course ...it was just an example...but Patrick has now solved it
  2. Shorter..... foreach ($pages->get('/about-us/meet-the-team/')->children as $child) { //do you stuff }
  3. 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...
  4. Wow! No words - thanks Avoine and Ryan
  5. @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..
  6. Tell me what to do and I'll test. There's 9 pages in this thread and I don't know where to start
  7. 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...
  8. 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!
  9. 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!
  10. 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 )
  11. 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
  12. Yes...that trick has been around for ages thanks to the you know who
  13. 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!
  14. 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)
  15. 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
  16. kongondo

    World Cup 2014

    One last Suarez one... http://www.bbc.co.uk/newsbeat/28014318
  17. kongondo

    World Cup 2014

    Luis Suarez: Uruguay striker's 'bite' was 'highly predictable'http://www.bbc.co.uk/sport/0/football/28014468
  18. kongondo

    World Cup 2014

    LOL...he was hungry and fancied and Italian....
  19. kongondo

    World Cup 2014

    Yes...this is the 3rd time! He obviously has a problem..no one in their right mind would do it thrice...
  20. kongondo

    World Cup 2014

    OK, so Suarez is not a vegetarian, but OMG!! He didn't just do that, did he? Unbelievable!
  21. Technically, it doesn't really matter actually because with ProcessWire you can adapt that code to pull in pages from anywhere ($pages) or stuff related to the current page being viewed ($page). This is an important concept to be grasped. And yeah, of course the code is to be placed in a template file and not really a page ;-)...but back to the issue if using pages, to reiterate my point the most important line in the code shown by Lance is this: $items = $page->children("template=slide,sort=sort"); If getting stuff from other pages, that could just as well be this... $items = $pages->get(1234)->children("template=slide,sort=sort"); The above will return arrays that you can do lots of stuff with. What I am trying to say is that PW has a very powerful API that you can take advantage of anywhere . Once you wrap your head around that, you can build anything Happy coding!
  22. Soulsliver, Welcome to ProcessWire and the forums. Enjoy!
  23. @Horst...yes, that line is there...
×
×
  • Create New...