Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Hi Jamie. Welcome to PW! In a bit of a hurry but this page also has answers for you - http://processwire.com/api/selectors/. E.g. title|body*=sushi tobiko //would match only those pages that had the exact phrase "sushi tobiko" present in either their title or body fields Edit: Adrian is fast! - As you read the docs (and this is mentioned there) $page always refers to the current page. $pages alwasy refer to all other pages
  2. Home Child 1 (child of parent ) - class for this....and more below... Grandchild 1 1 (another child of parent , so etc. ) Great grandchild 1 1 1 Grandchild 1 2 Child 2 Grandchild 2 1 A child class will potentially cause conflict with parent and has_children classes in cases where children are themselves parents CSS maybe?
  3. Nice one Kixe, thanks! You might want to look at Horst's audio profile as well - http://processwire.com/talk/topic/3604-release-localaudiofiles-mp3-db/ Edit: Beaten again! I'm slow today
  4. Great! Wanze beat me to it....again... . The following line renders posts... $content = $page->body . renderPosts("limit={$page->quantity}");
  5. Kunane, If you have the time, when you are done, please do a short write-up how you approached/accomplished this. It will help others . Thanks!
  6. kongondo

    la2050.org

    Nice site! well done
  7. Aah...thought about this but PW only suggested other fields as available to add.
  8. You can also see it in the URL when editing the page . Or echo echo $page->id; in your template file when developing . Of course, delete code when done
  9. Rule of thumb: many things -> foreach one thing -> grab and echo directly In your case, if what you want is on another page echo $pages->get(123)->enlace; //123 is ID of that page You can also use path to that page instead of ID. Please have a look at the API documentation. Everything to get your started is explained there http://processwire.com/api/. Look at variables and selectors in the first instance. Edit: Quick addition for newbies - what Harmster wanted in the first post were the names and the values of Fields which is different from what gfdesign needs
  10. Hmm...I think you guys have convinced me to leave Foundation 3 for Kube . I like the "split" css class as well.
  11. Diogo, Small typo: $config->url->templates should be $config->urls->templates - you are missing the "s"
  12. Thanks for this . Btw, I don't wish to steal k07n's thunder but I just used Word's "Save as PDF" and the resulting file is only 333KB (and text searchable). How did you convert yours?
  13. Looking nice totoff. Is this only for frontend or you are doing Admin theme as well?
  14. Is that a single page reference field or a multiple one? When editing that field, under input, have you checked the settings under "parent of selectable pages"? Also, still under input, have you checked that you have the correct type "input field type"? i.e. single type for single page reference field or multiple select type for multiple page reference field. There is a type that doesn't play well with PageListSelect. I can't remember which one but PW tells you. Could that be it? What about radio input select (for single pages), does that work? Are other none-page fields saving correctly? Is this post related to your other one here http://processwire.com/talk/topic/3767-new-fields-dont-appear-in-template/? If yes, it is good to keep related stuff in one post...
  15. Let's see that Dashboard then, eh, Pete
  16. Ryan, Any chance TinyMCE4 will appear before PW 2.5 2.4? Edited: meant 2.4
  17. Roelof, A bit more description about what you want to achieve would help. I am not sure what the problem is. These tools are also helpful: http://validator.w3.org/ http://jigsaw.w3.org/css-validator/
  18. $page or $pages work fine in Template Files as long as the they are outside functions. Your Template File can contain functions. Use wire() method in functions (or in your own class). Hence, both wire() and $page/$pages can appear in the same Template File if you so wish. EDIT: Apeisa was faster
  19. As a btw, the alternative syntax to wire('pages') is $wire->pages http://processwire.com/api/include/
  20. Ovi, Thanks for sharing this. Lines 57 and 60 in your code are identical. Is that meant to be the case?
  21. Some stuff, probably related to this discussion... http://processwire.com/talk/topic/2959-head-and-footinc-based-on-html5-boilerplate-for-basicexampleprofile/ http://processwire.com/talk/topic/2284-responding-to-responsiveness/ http://processwire.com/talk/topic/3442-how-do-you-layout/ (this one was hijacked by myself and others )
  22. @PWired. Thanks. I am humbled. I try to do my bit. Though, truth of the matter is that I've taken much more than I've given back. There's some great people in this community; I am awed by their generosity.
  23. Try this (subfield property) $products = $pages->find("template=product, [more criteria here] ,sort=-product_versions.price"); See these examples from http://processwire.com/api/fieldtypes/repeaters/. buildings is the name of the repeater. feet_high, num_floors and year_built are the fields. // find all pages that have at least one building with a height > 500 feet $buildings = $pages->find("buildings.height>500"); // find all pages that have a building made in 1940 with at least 20 floors $buildings = $pages->find("buildings.year_built=1940, buildings.num_floors>20"); // find all pages using the basic-page template with at least 1 building $buildings = $pages->find("template=basic-page, buildings.count>0") Other info (selectors) field.subfield=value
×
×
  • Create New...