Quick Nav:  Online Store   |   Login | Register

ExcludeTabs not working

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
saf
<20 Posts
Posts:12


01/24/2008 9:01 AM  

I have two menu on my page. On the top menu I want to exclude a particular tab but it is not working. Here is my code

This is my root nav code

 
 
<Snapsis:NavMenuid="ParentTabs"Level="1-1"Type="Tabs"runat="server"NavType="Template"
ExcludeTabs="Station.*"ShowType="WithActiveParent"TemplateFile="root.template.txt"/>
 

This is my left nav code

 
 
<Snapsis:NavMenuid="SubNavTabs"Level="1-3"Type="Tabs"runat="server"
NavType="Template"OnlyExpandActive="True"ShowType="WithActiveParent"TemplateFile="subNav.template.txt"/>
 
 

Can you tell me what am I doing wrong here?

PS: Editing the post to insert "code" tag

saf
<20 Posts
Posts:12


01/26/2008 1:41 AM  

Hi

Found the problem. ExculdeTabs & IncludeTabs doesnt work when ShowType property is set to anything other than default.

Please help me in excluding a tab as I cannot do away with ShowType property.  A quick help will be really appreciated as I want to make a deploy on monday

John Mitchell
Posts:3471


01/26/2008 8:00 AM  

The ShowType property is used to build the list of tabs regardless of the NavType so I'm not sure that is the problem.

One thing to remove is the Type="Tabs" setting. Type and NavType are actually the same thing. It is probably still using the Template since you set that last , but to be safe you only need to set NavType.

Can you give me a little more info on your nav structure? It looks like you are wanting the parent tabs to start at Level 1, but if you are trying to exclude the Station tabs at level 0 then the filter won't see the level 0 tabs. Maybe you want the level on the parent tabs to be Level="0-0" since the left nav is display levels 1-3?

saf
<20 Posts
Posts:12


01/26/2008 9:49 AM  
I pointed out ShowType because if I remove that property & change nothing else then menu excludes the Station tab.

I have 4 level menu. Level0 is not being displayed anywhere.

The top navigation is only showing Level1 menu of the selected Level0. i.e. children of selected Level0 . Station tab is in Level1. I dont want Station tab in top navigation but I need it in my left navigation. So I cannot hide make it hidden tab.

Left navigation is showing from Level1 to Level3 of selected Level0. i.e children of selected Level0.
saf
<20 Posts
Posts:12


02/10/2008 7:38 AM  
Well I found a work around for this. I check if the TabName is "Station" then I apply it a hidden class. In this class I have just set the display property to none.
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 > ExcludeTabs not working



ActiveForums 3.7
Powered by: Snapsis Software