Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. I'm trying to have the patience too At least let me know you have read the docs. If after that it still doesn't make sense, of course, feel free to ask ps: I edited my post above
  2. No it wont. Did you even read the docs I pointed to Andrei? Did you read Diogo's post above? $page->get(1006)->tv will not get you anything. First, $page always refers to the current page. Secondly, tv from what I can tell is a child page of home whose id is also 1006. I gave you code to insert first image of tv in home page in my example code. OK, one last time... Home (id = 1) TV (id = 1006) option 1: Get by page ID echo "<img src='". $pages->get(1006)->images->first()->url ."'>";//images here is the name of the multiple image field Option 2: Get by page name echo "<img src='". $pages->get("/tv/")->images->first()->url ."'>";//images here is the name of the multiple image field These are just examples...see Diogo's post how to get the link to the child page (tv)
  3. HI Rafael, PageFields . Beyond that, it depends. Are those categories related to each other or to other things? What's the relationship between "disciplines", "locations" and "themes"? As for the numbers, those look to me like counts of items found in each category? Can items belong to more than one category? Scalability? Those are the questions that need answering before any concrete response can be elicited. Please see the following related posts: http://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/ http://processwire.com/talk/topic/4116-best-way-to-structure-a-classifieds-site/
  4. Off to bed...but this should give you another hint... echo "<img src='". $pages->get(1419)->pictures->first()->url ."'>";//1419 = id of a child page (or any other page) Just an example Edit: Oh, that page I linked to (the $pages docs); that has easy-enough PHP to get you going
  5. Hint.... http://processwire.com/api/variables/pages/
  6. The search feature is nice I have to agree
  7. Getting a 403 on that link... Edit: There's a dot "." at the end of your link..that's why
  8. Facepalm; of course, the C.sheet! Thanks Soma...
  9. Bookmarked! Thanks guys... Please remind me what eq does? Googling a two-letter word can be tricky, thanks
  10. Whoa! Nice one Ryan
  11. Glad you got it sorted Joe. As you rightly suggest, key here is to make sure "Home" and "Event" do not share the same template. Otherwise the code would return home as the first parent. You may wish to mark this as solved (you answered your own question )
  12. Barry, You might want to mark this as solved then
  13. I'm not sure I follow to be honest. Did you find a solution? As you were typing, I tried to think this out logically...technically, what you want is the child (Event3) of the rootParent (Events) who (the child) is a parent/grand-parent, (has_parent) etc of the sub-events under Event3 Getting that logic in a selector..... Edit: Kind related...but about downward ancestry.. http://processwire.com/talk/topic/956-how-to-get-grand-childs/
  14. So are you saying you don't know how many levels deep your events will be going? From your example I assumed you wanted the grand-parent... Edit: I don't get this bit "how many parents are the current page/event". Since current page/event cannot be its own parent, did you mean to say.. "how many parents (recursively) the current page/event will have"?
  15. echo $page->parent->parent->title; works just fine
  16. It seems like very few of us are going to get some sleep tonight (after watching this)...that feeling you get after watching Avatar... the surreal bit (not the sorrow!)
  17. OK, what programme did you use to make that spoof video?! After effects or something? My goodness! Avoine/Antti, thank you very much!!! As for you Mr Cramer, I don't know what to tell you. Seriously, mate, I can't pick an adjective apt enough. Let's just say that you Sir are one of the best things that has happened to the open source community. Hats off! cheers /k
  18. +1 for Diogo's advice.. I also suggest you do your tutorials/tests on a local install of PW rather than on your live/remote server (e.g. WAMP, XAMPP, etc)
  19. Hi Tester. Welcome to PW and the forums. Not sure what you want to achieve in the end but users in PW are also stored as pages. Hence, they come with a template. You can add as many fields as you like to the user template to store your data and retrieve and display these like any other field using your template file - hence extending "user". To view the "user" template, go to Setup->Template. Then under filters panel, under show system templates, select yes. Scroll down to the now revealed "system" templates. Select the "user" template and you are ready to start adding your custom fields to it . If you wish, you can then hide the system templates when you are done... About IDs, users are automatically assigned IDs when you create them Edited for clarity...
  20. Never noticed this before. Good to know, thanks..
  21. No worries, Have you tried to install again? Same thing happened? If it still doesn't work, I can have a quick look. PM me if you wish me to do so..I notice however that it seems your mysql version is 5.0.8 and PW recommends 5.0.15 or greater. Anyway, let me know
  22. Did you create a db to install PW to, btw?
  23. Displaying so much info about your server details publicly is normally not a good idea. No reason to give the "bad boys and gals" any more info than they need
  24. That will get the pages. one page [and you need include all {of course}, see below].you then need to delete them ... Edited for corrections..see below...slow Tuesday kongondo!
×
×
  • Create New...