Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/05/2012 in all areas

  1. Just rewrote my previous post multiple times... lol. Got little confused.
    1 point
  2. When you use a page field you can always relate the pages both ways. Only the way you call them is different. You call B from A like this: $page->pagefield and A from B like this: $pages->get('pagefield=$page') where A is the page that has the page fieldType
    1 point
  3. Not sure if I understand right. Edit: If page field is limited to one page max you could also do this if($page->related->related === $page){ // related page has this page also referenced } else { // it's not } Edit2: corrected a previous example if multiple page field with better example if(count($page->related)){ foreach($page->related as $rel){ // check recursively if one of the related pages has this page in it's related pages if($rel->related->has($page)){ echo "<li>$rel->title</li>";// related page has this page also referenced } else { // it's not } } }
    1 point
×
×
  • Create New...