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, ...DNN Nav Menu - Once and for all...DNN Nav Menu - Once and for all...
Previous
 
Next
New Post
7/21/2009 4:43 PM
 

So this one's the "Once and for all" thread for DNN Nav Menu skinobject.

One of the biggest questions that comes up time and time and time again is "Menu this," "Menu that".  I have a few gripes about menus myself.  Hopefully this thread can become the place for all queries NavMenu. Let's get the ball rolling.  Let's make this a hot link.  Lets get it pinned to the top of the forum.

Here's what I know and what I can contribute:

  1. Getting the NavMenu to display Vertically (using .ascx skinning method)
    1. Some CSS for this display
  2. Getting the NaveMenu to display Horizontally (using .ascx skinning method)
    1. Some CSS for this display

So here goes (as above):

1. Getting the NavMenu to display vertically (using .ascx skinning method)

Contain the menu in a <div> (or <td> if you're old school) that has its own styling - width, etc.  Then place the following into that div:

<dnn:NAV runat="server" id="dnnNAV" providername="DNNMenuNavigationProvider" indicatechildren="false" controlorientation="Vertical" cssnoderoot="dnavmenu_rootitem" cssnodehoverroot="dnavmenu_rootitem_hover" cssnodeselectedroot="dnavmenu_rootitem_selected" cssbreadcrumbroot="dnavmenu_rootitem_selected" csscontainersub="dnavmenu_submenu" cssnodehoversub="dnavmenu_itemhover" cssnodeselectedsub="dnavmenu_itemselected" csscontainerroot="main_dnnmenu_container" csscontrol="dnavmenu_bar" cssnode="dnavmenu_bar" cssbreak="dnavmenu_break" cssicon="dnavmenu_icon" />

The biggest indicator here is "controlorientation="Vertical." Next, you'll want to style this bad boy.  If you look at the code above, you'll see "cssnoderoot=", etc.  This is a way of saying to the menu, "Hey, use these styles, will you..?!"  You can download the corresponding CSS for this at this link.

2. Getting the NavMenu to display horizontally (using the .ascx skinning method)

Again, contain the menu in a <div> (or <td> if you're old school) that has its own styling - width, etc.  Then place the following into that div:

<dnn:NAV runat="server" id="dnnNAV" providername="DNNMenuNavigationProvider" indicatechildren="False" controlorientation="Horizontal" cssnoderoot="dnavmenuhorz_rootitem" cssnodehoverroot="dnavmenuhorz_rootitem_hover" cssnodeselectedroot="dnavmenuhorz_rootitem_selected" cssbreadcrumbroot="dnavmenuhorz_rootitem_selected" csscontainersub="dnavmenuhorz_submenu" cssnodehoversub="dnavmenuhorz_itemhover" cssnodeselectedsub="dnavmenuhorz_itemselected" csscontainerroot="dnavmenuhorz_container" csscontrol="dnavmenuhorz_bar" cssbreak="dnavmenuhorz_break" cssicon="dnavmenuhorz_icon" />

Once again, you'll want some CSS for this - found at the same link as above, this one.

I'm certainly not the authority on this, but this has seen me through some hair-pulling moments.  If you have corrections to the above or better / more CSS styles available for users to download and learn from, please post them here.  If you have any questions about the DNN Nav Menu, post them here.  If you have something of genuine value about this skin object, post it here.

Later
Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
7/21/2009 5:51 PM
 

Excellent thread - thankyou.



Alex Shirley


 
New Post
7/21/2009 7:38 PM
 

I need separators. I cant get them to work, ever. Just simple white pipe style separators that I can size to match my menu height. Probably too much to ask for.

Beth V.

DotcomDominion.com

 
New Post
7/22/2009 7:41 AM
 

Hi Beth

Very common question for this menu (and others: solpart *yuk* and house menu).
Again, no-one's ever had the answer buttoned down and in one place...  Let's make it happen here.

Point us to working examples, or better yet, send us some CSS to learn from.

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
7/23/2009 6:08 AM
 

Hi,

i want to use 2 dnn nav's. One on the top  en one on the leftside.
I don't know how to link them. If i select item 1 at the topmenu i want the submenuitems of item1 appear in de leftside menu.

Any ideas?

Thanks.
Stephany

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN Nav Menu - Once and for all...DNN Nav Menu - Once and for all...


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