Detect if the page has children ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ced64k
Forum Members
Forum Members
Posts: 17
Joined: Mon May 15, 2006 9:09 am

Detect if the page has children ?

Post 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  :)
ced64k
Forum Members
Forum Members
Posts: 17
Joined: Mon May 15, 2006 9:09 am

Re: Detect if the page has children ?

Post by ced64k »

Any idea ?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Detect if the page has children ?

Post by Dr.CSS »

What it's used for may help get an answer...
Post Reply

Return to “CMSMS Core”