[solved] Separate submenus with parent link as menu header
Posted: Mon Apr 13, 2009 12:59 pm
I've been digging around over the weekend and just can seem to accomplish this task. Any help will be greatly appreciated.
I have a horizontal menu that contains four primary parent items and children items of up to two levels deep. This horizontal menu only shows the first level of child links. When one of the child links are clicked, the resulting page has a new vertical menu in the left sidebar that contains the 3rd level of links for said parent menu item. ie.:
1. Explore
- 1.1 Where to stay
=============(above are primary horizontal menu items, below are secondary vertical menu items)
- - 1.1.1 Inns & Spas
- - 1.1.2 Hotels & Motels
- - 1.1.3 Bead & Breakfast
- - 1.1.n etc.
I have both the horizontal and vertical menus appearing as expected. What I would like to do is add a header to the vertical menu that has the value of it's direct parent menutext. Using the example above, the vertical sidebar menu would look like the following when "Where to stay" is clicked in the primary menu:
*Where to stay*
- 1.1.1 Inns & Spas
- 1.1.2 Hotels & Motels
- 1.1.3 Bead & Breakfast
- 1.1.n etc.
For the life of me, I do not seem to be able to obtain the child menu's parent menutext value and use it as a header for the vertical menu ("Where to stay" in this case). Something along the lines of $node->parent_menutext is exactly what I'm looking for... I think.
Thanks,
Brian
I have a horizontal menu that contains four primary parent items and children items of up to two levels deep. This horizontal menu only shows the first level of child links. When one of the child links are clicked, the resulting page has a new vertical menu in the left sidebar that contains the 3rd level of links for said parent menu item. ie.:
1. Explore
- 1.1 Where to stay
=============(above are primary horizontal menu items, below are secondary vertical menu items)
- - 1.1.1 Inns & Spas
- - 1.1.2 Hotels & Motels
- - 1.1.3 Bead & Breakfast
- - 1.1.n etc.
I have both the horizontal and vertical menus appearing as expected. What I would like to do is add a header to the vertical menu that has the value of it's direct parent menutext. Using the example above, the vertical sidebar menu would look like the following when "Where to stay" is clicked in the primary menu:
*Where to stay*
- 1.1.1 Inns & Spas
- 1.1.2 Hotels & Motels
- 1.1.3 Bead & Breakfast
- 1.1.n etc.
For the life of me, I do not seem to be able to obtain the child menu's parent menutext value and use it as a header for the vertical menu ("Where to stay" in this case). Something along the lines of $node->parent_menutext is exactly what I'm looking for... I think.
Thanks,
Brian