Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Sub menu as a separate menuSub menu as a separate menu
Previous
 
Next
New Post
2/7/2011 5:29 AM
 
Hello,

I'm quite new to DNN, so be kind if this is an obvious one.

I have two menus in my custom skin, a main menu and a sub menu that is driven by the root items in the main menu. This was a bit tricky to set up, but having read a few articles online I managed to get it working with one exception. I have the sub menu set to Level="Child" to avoid displaying the root items in it, but if I click on a sub menu item it disappears rather than rendering the item as selected. I understand why it is doing this as the second level item has no children, so the menu isn't rendered due to the level setting. Here is the code, if that doesn't make any sense:

<dnn:NAV runat="server"
                        ID="dnnNav"
                        ProviderName="DNNMenuNavigationProvider"
                        IndicateChildren="false"
                        ControlOrientation="Horizontal"
                        CSSControl="mainMenu"
                        PopulateNodesFromClient="false"
                        ExpandDepth="1" />

<dnn:NAV runat="server"
                        ID="dnnSubNav"
                        ProviderName="DNNMenuNavigationProvider"
                        IndicateChildren="false"
                        ControlOrientation="Horizontal"
                        CSSControl="subMenu"
                        Level="Child" />

Does anyone know how I can get the sub menu to stay on screen when an item is clicked and not show the root item in it?

Thanks,

Michael
 
New Post
2/8/2011 3:55 AM
 
Check out these examples:
http://dnnskinextensions.codeplex.com...
 
New Post
2/9/2011 4:56 PM
 
Thanks, I'll take a look.

I did figure out an approach when I realised the LeftMenu control that is part of the default skin was just a Telerik control in a wrapper. I didn't realise you could write your own :)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Sub menu as a separate menuSub menu as a separate menu


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out