Monday 02 October 2006 2:32:33 am
I've got some sub navigation on my site that extends to 2 levels. I've coded this into my pagelayout.tpl like so.
<ul>
{foreach $pagelayout_node.children as $child}
<li><a href={$child.url_alias|ezurl}>{$child.name}</a>
<ul>
{foreach $child.children as $child_subnav}
<li><a href="{$child_subnav.url_alias|ezurl}}">{$child_subnav.name}</a></li>
{/foreach}
</ul>
</li>
{/foreach}
</ul>
This works fine. However, when I click on a child node I lose the top level. I would like this to still be display. Let's see if i can explain this a little. My navigation is something like below:
1
-- 1.1
-- 1.2
2
- 2.1
- 2.2
3
4
- 4.1
When I click 1.1 the top level all disappears on the page. So I can't go back up the tree. I would like the navigation tree to remain constant independant of the level i am on. Did that make any sense?
|