Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/22/2012 in all areas

  1. $pr = $pages->get("title=Zoo"); $poi = $pages->find("template=poi, poi_type=$pr");
    1 point
  2. Do you allow one or multiple references? If multiple, then do this: $page->ref_page->first()->title; or then foreach then. If only one is allowed, then set it single page object from field settings and earlier example should work.
    1 point
  3. Probably not all correct anymore, but basics are true: http://processwire.com/talk/topic/545-progress-on-processwire-22-and-overview-of-multi-language-support/page__st__40__p__5732#entry5732 It should help you get started. If not, feel free to ask help.
    1 point
  4. This: $page->ref_page; doesn't return the id, it returns the whole page object (echoes the id though, but var_dumb shows the truth). So no need to get(id), because you already have the correct page. This is what you are looking for: $page->ref_page->title; EDIT: And if you do need the id, it can be get with this: $page->ref_page->id;
    1 point
×
×
  • Create New...