Quick Nav:  Online Store   |   Login | Register

starting "scope" for navmenu

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
koolworld
<50 Posts
Posts:40


02/15/2007 4:17 AM  
Hi,

Im trying to set a horizontal menu to show the children of a certain tab whether that tab is currently active or not. In housemenu i used the Scope setting to tell the menu where to start. But i can't seem to do this with NavMenu2.

I tried the IncludedTabs setting and put in the name of the tab i wanted to start from but this would only show the menu if i was viewing that page. I've tried everything i can think of with no luck. Can you advise?

Regards

Dan.
John Mitchell
Posts:3478


02/15/2007 8:01 AM  
Hi Dan,

Try using the IncludeTabs to specify the parent of those children, then set ShowType="ChildrenOnly". Also include the parent level in your Level setting.
koolworld
<50 Posts
Posts:40


02/15/2007 9:38 AM  

Hi John,

I think i've done what you've mentioned above, the code im using is:

DisplayIcon="true"
Level="0-3"
NavType="Tabs"
ExcludeTabs="Admin,Host"
IncludeTabs="Insurance Quick Links"
ShowType="ChildrenOnly"
runat="server" />

"Insurance Quick Links" is at the top level but is hidden, if i set it to visible, then it does show up as expected. I didn't want it showing up in the other main menu (which just shows visible parents, but i guess i can include it in the ExcludedTabs of that menu which will solve this. Is there a setting to tell it to show hidden or is this not possible?

One thing i've just noticed is that it shows the parent tab name "Insurance Quick Links", i only want it to show the children (level 1) tabs.

Thanks for you help.

Dan.

John Mitchell
Posts:3478


02/15/2007 10:03 AM  
Hi Dan,
You are correct. Just exclude it in the other menu.

I think that is better than displaying menu items that are set as hidden, but it is situations like that which brought the Property called ShowType into the menu.

Maybe I could add another ShowType, but the trouble is you sometimes want to do two or three of those things, and I don't want it to get too complex overall.

Explicitly including and excluding is much more straight-forward IMO.
koolworld
<50 Posts
Posts:40


02/16/2007 8:05 AM  
This seems to be working well now John, thanks for your help. one thing i mentioned in my last msg was that the Parent was being displayed in the list of links when i only wanted the children. To get around this i set its CSS style display to none which has solved this, but is there a way of makeing a setting in the menu instance?

Cheers, Dan.
John Mitchell
Posts:3478


02/16/2007 9:49 AM  
Hmmm, it's been a while since I tried that type, and I thought it only displayed the children, but you might try changing the Level so that it does not include the level that parent tab is on.
Let me know if that works or not. I may need to tweak the code there.
koolworld
<50 Posts
Posts:40


02/16/2007 10:23 AM  
If i change the level from 0-1 to 1-1 the menu doesn't appear so i guess that isn't an option.

cheers.
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 > starting "scope" for navmenu



ActiveForums 3.7
Powered by: Snapsis Software