Page 1 of 1

need help displaying the next level down from menu root

Posted: Fri Sep 02, 2011 9:35 pm
by pcaines
Hi All i know that {$cgsimple->get_root_alias()} will display the alias of the menu root.

but what i am after is displaying the alias of the next level down.

1 - root use code {$cgsimple->get_root_alias()}

1.1 - how do i display this alias?


I have many menu levels but need a way of always been able to call up the next level down from root.

Any help will be much appreciated i have been trying to solve this for hours

Re: need help displaying the next level down from menu root

Posted: Fri Sep 02, 2011 10:35 pm
by calguy1000
1. Get the root alias
2. Get the children of the root alias
{$cgsimple->get_children($the_root_alias,'children')}
3. Get the first child
{$children[0]}

I didn't look at the docs, the code or test... but this should be close.