I'm using a 2 levels of navigation such that there is a main navigation menu and a sub-navigation menu for each item in the main menu. The sub-navigation includes only those items that come UNDER the parent. I was wondering how to display the parent in the sub-navigation as well as if it were part of the child items as well such that the main navigation's page is displayed by default (This would be really easy in PHP, but learning how to manipulate these menus is really a pain). For example:
Main Nav: Home, About Us, Links, Guestbook
Sub Nav 1: Home, Archives
Sub Nav 3: Links, Affiliates, Resources
Thanks for any help!
[solved] sub-navigation with parent displayed?
-
- New Member
- Posts: 7
- Joined: Sat Jun 21, 2008 12:05 am
[solved] sub-navigation with parent displayed?
Last edited by emceenugget on Sat Jun 21, 2008 10:29 pm, edited 1 time in total.
Re: sub-navigation with parent displayed?
Have you tried to use parameter start_page or start_element with MenuManager call?
Re: sub-navigation with parent displayed?
Have you read this?...
EDIT: Sorry my link never made it in here...
http://forum.cmsmadesimple.org/index.ph ... #msg112125
EDIT: Sorry my link never made it in here...

http://forum.cmsmadesimple.org/index.ph ... #msg112125
Last edited by Anonymous on Sun Jun 22, 2008 8:06 am, edited 1 time in total.
-
- New Member
- Posts: 7
- Joined: Sat Jun 21, 2008 12:05 am
Re: sub-navigation with parent displayed?
Sorry for the late reply. Using start_page and start_element made something close to what i want. However, it displays the children in a sub-list, while I'm trying to get the parent to be displayed as an item in the same list as the children for the sub-menu. What I did was insert into my page template {menu start_page="$page_alias" template="mymenu"}
I think I need to apply some changes into the actual menu template, but I'm not exactly sure what tags I can use yet.
Thanks again
I think I need to apply some changes into the actual menu template, but I'm not exactly sure what tags I can use yet.
Thanks again
-
- New Member
- Posts: 7
- Joined: Sat Jun 21, 2008 12:05 am
Re: sub-navigation with parent displayed?
OK, so i just decided to display all menu items regardless of hierarchy into the same level of list items. Not pretty, but it's the only solution I could figure. Thanks for the help.
-
- New Member
- Posts: 7
- Joined: Sat Jun 21, 2008 12:05 am
Re: [solved] sub-navigation with parent displayed?
sorry, but i just noticed that my problem isn't completely solved. how do i find the root page alias of the current page? by root, i don't mean the root of the whole site, just the root element in the hierarchy. these would be the menu items in the "Main Nav" list i put in the first post.
thank you for the help again
thank you for the help again
-
- New Member
- Posts: 7
- Joined: Sat Jun 21, 2008 12:05 am
Re: [solved] sub-navigation with parent displayed?
okay, this will be my last post here as i have noticed a more graceful solution in using the "Links" content type such that my main menu and the upper-most parents are all links such that their children are the actual pages to be displayed, where the link target URL is the default page I will be displaying.
Just mentioning my final solution in case anyone else runs into something similar (I actually saw a post back in march that never got replies)
Just mentioning my final solution in case anyone else runs into something similar (I actually saw a post back in march that never got replies)
Re: [solved] sub-navigation with parent displayed?
http://wiki.cmsmadesimple.org/index.php ... .27s_aliasemceenugget wrote: how do i find the root page alias of the current page?