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
pistols
New Member
New Member
Posts: 8
Joined: Tue Jun 17, 2008 8:26 am

has children

Post by pistols »

Hello there, can i have an actually simple question?


I need to show a page in a different style if a page has siblings.
something like

<div id="{if pageHasChildren eq '1'}Complex{else}Simple{/if}">
</div>

what is the best way to find out if a page has underpages in a template?


and a bonus question can i access the parameters of those children? (i am using it with the cataloger module, so one of those user defined fields...)
Thanks
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: has children

Post by Wishbone »

Check out the CGSimpleSmarty module.. Has many functions to determine stuff like this.
Post Reply

Return to “CMSMS Core”