Quick Nav:  Online Store   |   Login | Register

Only parent tabs in selectlist?

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
keston
<50 Posts
Posts:20


10/11/2007 9:02 AM  

Hey John,

Couldn't find it here....but is it possible to configure it in a skin


in a way that the list only shows its children so to speak....So only itself and its child tabs.....I want to place this in a skin thats used in multiple levels 1. For example if I am on page tab2b_level1, the selectlist must show only tab2b_level1 and its childtabs (tab2b1_level2, tab2b2_level2 and tab2b3_level2); if I am on page tab2a_level1, the selectlist must show only tab2a_level1 and its childtab (tab2a1_level2).

tab1_level0
        tab1a_level1
tab2_level0
        tab2a_level1
                tab2a1_level2
        tab2b_level1
                tab2b1_level2
                tab2b2_level2
                tab2b3_level2
        tab2c_level1
                tab2c1_level2
        tab2d_level1
                tab2d1_level2
tab3_level0

 

Can you please help me?

Keston

keston
<50 Posts
Posts:20


10/12/2007 6:39 AM  

John,

Is it possible to include a token so that you'll get something like:

snapsis:navmenu id="ChildtabsLevel1" level="1-2" type="SelectList" IncludeTabs="[Page.Parent.Name]"....?

 

Keston

John Mitchell
Posts:3478


10/12/2007 9:00 AM  

There is a ShowType="WithActiveParent" that should do what you want.

 

keston
<50 Posts
Posts:20


10/12/2007 9:12 AM  

but in the developersguide you stated:

ShowType – Used very rarely. This property was added to support using two instances of the menus on the
same page as in the case when you want to display root navigation in one instance and child navigation in
another, with the child instance only displaying the links for the currently active root.
**Note: This setting is only valid when using the “Tabs” NavType.

and i'm using the NavType="SelectList"

Maybe this is why this doesnt work?

Keston

John Mitchell
Posts:3478


10/12/2007 9:32 AM  
Recent versions include that option for other types of built-in menus, including the SelectList. I need to get that documentation updated.

If it is not working, maybe you have an older version. I can send you a newer version if that is the case, just reply directly to the notification of this post.
keston
<50 Posts
Posts:20


10/12/2007 9:50 AM  

I have version 3.1.2.0....thought that that was the latest?

I now have this in my skin:

Snapsis:NavMenu id="ChildTabsLevel1" Level="2" Type="SelectList" ShowType="WithActiveParent" runat="server"

but it shows áll level 2 tabs and not only the ones under the active tab!

Keston

John Mitchell
Posts:3478


10/12/2007 12:11 PM  
I just tried it on my dev instance and it worked as expected.
Try putting an ending range on the Level, Level="2-2", or Level="2-3" and see if that helps.
John Mitchell
Posts:3478


10/12/2007 12:12 PM  

Oh, and yes, 3.1.2 is the newest and should have that change, but if you want to send me an e-mail I can send you what I have.

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 > Only parent tabs in selectlist?



ActiveForums 3.7
Powered by: Snapsis Software