Quick Nav:  Online Store   |   Login | Register

Showing active parent only...

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Chris Chapman
<20 Posts
Posts:4


06/26/2007 2:19 PM  
Hello!

Firstly great work, i'm very impressed with this menu it did exactly what I wanted pretty much out of the box!

The menu structure im trying to achive follows:


Menu 1: Horizontal showing just the parents .. this ive sorted

Menu 2: The vertical child menu I want displayed as

Sub Item 1
Sub Item 2
 ` Child of Sub 2 #1
 ` Child of Sub 2 #2
     ` Child of Sub 2 #2 (1)

etc

In addition to that I want to show the active root tab at the top

e.g

Selected Root node
    Sub Item 1
        Sub Item 2
         ` Child of Sub 2 #1
         ` Child of Sub 2 #2
             ` Child of Sub 2 #2 (1)

Im unsure how to have the Active root selected .. Im guessing I will need another instance of the menu or can it be done without?

Thanks in advance,

Chris
John Mitchell
Posts:3478


06/27/2007 1:44 AM  
Hi Chris,
Thanks for the feedback. I'm glad it's working for you.

I'm not quite sure what you are asking. Do you want the curently active root item to be both on the horizontal menu and on the vertical menu?

If so, you'll need to create a template to make that happen. What you would do is create a template that does the second menu, and then put the Currently active tab link inside the menu container tag. Something like this:



[NavMenu-Container[ <aclass="SelectedItem"title="{ActiveTab.Title}"target="_blank"href="{ActiveTab.Url}">{ActiveTab.Name}</a><ulid="nav"> ]]



That's not the whole template of course. Let me know if this is what you are wanting to do, and if you need any help with the rest of the template.

Chris Chapman
<20 Posts
Posts:4


06/27/2007 11:16 AM  
Hi John,

My current markup is as follows:

Menu 1:

(Snapsis:NavMenu id="ParentTabs" Level="0-0" Recurse="False" Type="Hover" ExcludeTabs="Admin,Host" runat="server" /)

This displays the root tabs horizontally

Now, my 2nd menu's markup:

(Snapsis:NavMenu id="ChildTabsLevel1" Level="1-10" OnlyExpandActive="true" Type="Hover" ShowType="WithActiveparent" ExcludeTabs="Admin,Host" runat="server" /)

This shows the immeadiate children vertically

The only addition I want is at the top of Menu 2 I want to show the current active (menu 1) tab

So for example if my parent tabs are:

Section 1 | Section 2 | Section 3

If Section 1 is selected it would show

Section 1
Child of Section 1
Child of Section 1
Child of Section 1

Im just after the markup to show Section 1 at the top of the second menu

Hope  this explains it further

Thanks,

Chris

John Mitchell
Posts:3478


06/27/2007 10:15 PM  
Hi Chris,
That sounds like what I thought. Now that I think about it more, you could easily add a link for the currently active tab directly to your skin.
Use the following code before the declaration of your child menu:
<atarget=_blankhref="<%=PortalSettings.ActiveTab.Url%>"><%=PortalSettings.ActiveTab.TabName%></a>


There are more tips like that at the following link:
http://www.snapsis.com//tabid/560/forumid/12/postid/5003/view/topic/Post.aspx
Chris Chapman
<20 Posts
Posts:4


07/06/2007 10:50 AM  
Many thanks John, that's exactly what i was looking for!
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > Showing active parent only...



ActiveForums 3.7
Powered by: Snapsis Software