Page 1 of 1

Detect if the page has children ?

Posted: Wed Oct 31, 2007 1:19 pm
by ced64k
Hello,

Is it possible to detect if the page has children ? Like  {$node->haschildren == true} for the menu.

I have 2 pages which haven't children. Maybe you have a better solution than my "if page = or page = or page =".

Code: Select all

<div id="lsidebar">
				
  {menu template='submenu.tpl' start_level='2' collapse='1'}
				
  {if $page_name == 'index' || $page_name == 'PXF_Contact_Us'}
    {global_content name='column-box'}
  {/if}
				
</div>{* //lsidebar *}
Thanks  :)

Re: Detect if the page has children ?

Posted: Sun Nov 04, 2007 10:56 am
by ced64k
Any idea ?

Re: Detect if the page has children ?

Posted: Mon Nov 05, 2007 1:25 am
by Dr.CSS
What it's used for may help get an answer...