[solved] sub-navigation with parent displayed?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
emceenugget
New Member
New Member
Posts: 7
Joined: Sat Jun 21, 2008 12:05 am

[solved] sub-navigation with parent displayed?

Post by emceenugget »

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!
Last edited by emceenugget on Sat Jun 21, 2008 10:29 pm, edited 1 time in total.
cyberman

Re: sub-navigation with parent displayed?

Post by cyberman »

Have you tried to use parameter start_page or start_element with MenuManager call?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: sub-navigation with parent displayed?

Post by Dr.CSS »

Have you read this?...

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.
emceenugget
New Member
New Member
Posts: 7
Joined: Sat Jun 21, 2008 12:05 am

Re: sub-navigation with parent displayed?

Post by emceenugget »

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
emceenugget
New Member
New Member
Posts: 7
Joined: Sat Jun 21, 2008 12:05 am

Re: sub-navigation with parent displayed?

Post by emceenugget »

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.
emceenugget
New Member
New Member
Posts: 7
Joined: Sat Jun 21, 2008 12:05 am

Re: [solved] sub-navigation with parent displayed?

Post by emceenugget »

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
emceenugget
New Member
New Member
Posts: 7
Joined: Sat Jun 21, 2008 12:05 am

Re: [solved] sub-navigation with parent displayed?

Post by emceenugget »

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)
cyberman

Re: [solved] sub-navigation with parent displayed?

Post by cyberman »

emceenugget wrote: how do i find the root page alias of the current page?
http://wiki.cmsmadesimple.org/index.php ... .27s_alias
Post Reply

Return to “Layout and Design (CSS & HTML)”