Need Horizontal menu showing current page children
Posted: Fri Oct 12, 2007 1:16 pm
I need a horizontal menu that will only show up when the current page has children and display the child page links. I've searched all over the forum and wiki. I want it to work like the "Generic Sub Menu" but it looks like Ellnav was combined when menu manager was created. I also do not want these child pages to show up in the vertical expand menu.
here is the code in the template that I am using
The hierarchy is the UDT described in the wiki for Generic Sub Menu
So the menu shows up but does not display the child for that page and the child shows up in the vertical menu.
You can see what I'm talking about here
http://tuckness.com/index.php?page=henr ... s-tuckness
Any idea's?
Thanks for any help!!!
Kristy
here is the code in the template that I am using
Code: Select all
<div id="menu_horiz">{hierarchy}
{menu template='simplenav' start_element=$h_this collapse='2'}</div>
Code: Select all
# Name: hierarchy
global $gCms;
$pos = $gCms->variables['position'];
$base = explode('.', $pos);
$smarty->assign('h_toplevel', $base[0] * 1);
$smarty->assign('h_parent', $base[ (count($base) > 1) ? count($base)-2 : 0 ] * 1);
$smarty->assign('h_this', $base[count($base)-1] * 1);
You can see what I'm talking about here
http://tuckness.com/index.php?page=henr ... s-tuckness
Any idea's?
Thanks for any help!!!
Kristy