GetSimple Support Forum

Full Version: if_parent; if_child
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am wondering if there is a way to determine if a given page is a child page, a parent page, or both.

My ultimate goal is that if a page is a parent page, I would like to display a list of their child pages, if a page is a child page, I would like to display a link back to the parent, and if it is both, then it would display both links.
if(getChildren or getChildrenMulti etc
in caching_functions

for is child check
$pagesArray[$pageId]['parent'] is not empty()
or
returnPageField($page,'parent') not empty
Thanks! I'll try that and see how it goes.