The update went ok, no real issues in the backend. on the frontend all custom functions stopt working as expected. In the past i used a function like below, to get child page content and output custom menu's, page content, etc:
Almost everything depended on, $pagesParents[NO_PARENT_CHAR];
Code: Select all
function getSubPage($name, $title=true) {
global $Page, $pagesParents;
$parents = $pagesParents[NO_PARENT_CHAR];
foreach($parents as $parent):
if( $parent->published()):
if(isset($pagesParents[$parent->key()])):
$children = $pagesParents[$parent->key()];
foreach($children as $child):
if ($child->slug()!=$name):
elseif($child->slug()==$name && $title):
echo $child->title();
echo $child->content();
endif;
endforeach;
endif;
endif;
endforeach;
}
Is there another way to do this? Or does anyone know how to update the code above?