Page 1 of 1

has children

Posted: Thu Dec 26, 2013 4:22 pm
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

Re: has children

Posted: Thu Dec 26, 2013 6:32 pm
by Wishbone
Check out the CGSimpleSmarty module.. Has many functions to determine stuff like this.