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, ...Does NavMenu 2 that ships with DNN 5.x use any tables?Does NavMenu 2 that ships with DNN 5.x use any tables?
Previous
 
Next
New Post
1/25/2010 10:06 PM
 

I am going though a DNN NavMenu2 tutorial and it appears that NavMenu2 uses tables for sub menu items.  Is this true?  If it does, is there anyway not to use the tables?  I thought that it is better not to use tables.

Thanks

Doug

 
New Post
1/26/2010 3:00 AM
 

Hi

The navmenu has the abillity to render as an unordered list instead of spans and tables. YOu need to modify your skins for this

In order to use unordered list you need 2 things inf you want to use the customattributes you need to register another item in top of  your ascx ( dont know the html/xml way for this )

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>

 

then you can use the following to create unordered list menu

<dnn:NAV runat="server" ID="dnnNAV" ProviderName="DNNMenuNavigationProvider" CSSNodeSelectedRoot="sel" CSSNodeSelectedSub="bc>
<CustomAttributes>
<dnn:CustomAttribute Name="RenderMode" Value="UnorderedList" />
</CustomAttributes>
</dnn:NAV>

This will generate an unordered list structure for you which you an then style,doa view source and you will see a simple unordered list struture, if you have Firefox and the dev toolbar do a generated source view and you wills ee the extra styles and classes that can be applied, see a list of which one you can use in the table below.

I am still not fond myself of the navmenu because of all the inline injections in rendered source so I use the free one from dnndoneright.com . it is tempalte based so you ahve freedom over every part of the output

 

Class Description Sample Explanation
.m All Sub Menu .m All sub menus
.m[level] Sub Menu at Level x .m0 First level sub menus
.mid[id] Sub Menu with ID x .mid39 DNN Admin Sub Menu
.break Break .break All menu breaks
.mi Menu Item (all) .mi All Menu Items
.id Menu Item with ID x .id41 Menu Item with ID 41
.mi[path] Menu Item in Specific Path .mi0
.mi1-0
First Menu Item (Home)
First child of second root menu
.root Root Menu Item .root All root menu items
.first First Menu Item .first
.root.first
First menu item in each menu
First menu item in root only
.last Last Menu Item .last
.first.last
Last menu item in each menu
Menu items with only one item (both 1st and last)
.icn Icon .first.icn First Icon container in all menus
.hov Hover .root.first.hov First menu item hover
.sel Selected .m .sel Selected sub menu items
.bc BreadCrumb .m .bc Breadcrum sub menu items
.txt Text (Coming Soon!) .m .txt Text portion of all sub menu items
Not Implemented Yet
* All child elements .m .mi * All elements within menu item

 

 

 
New Post
1/26/2010 5:22 AM
 

It's not possible to use the html skinning method as custom atributes is not implemented in the core skin implementation.

Question to skinning team --- Why?

Regarding to inline css a major improvement was implemented in latest webcontrol released with 5.1.4 if I remember correct.

The css class .txt is implemented.

You can also use the standard menu whithout tables if you give the custom attribute value tableless.

 
New Post
1/26/2010 9:08 AM
 

I've got a feeling that skinning is moving away from HTML methods and to only ASCX at some future point.  With all the skinning changes, it's becoming almost impossible to use tokens to build a proper skin.

Jeff

 
New Post
1/26/2010 10:45 AM
 

Thanks for the info.  I would think that this would be the default method as everyone is moving away from tables.

I'm in the process of creating a base skin that has the pane layout i would always use and a menu that I could tweak for any design.  I own the snapsis menu and might use that in the future once i get up to speed.

It looks like the third line is the key here

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Does NavMenu 2 that ships with DNN 5.x use any tables?Does NavMenu 2 that ships with DNN 5.x use any tables?


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