en | nl
  Search

Zoeken in onze weblogs

Onze weblogs / Our Weblogs

dec 10

Written by: peter schotman
donderdag 10 december 2009 

For those new guys working with DNN and trying to have the default DNN menu play nice, I have compiled a number of references that help you get going. dnnNAV is a very powerful menu.

The author of the menu code (Jon Henning) provided us with a nice video tutorial on the CSS characteristics of the dnnNAV menu. A must see. Second you need to add the following code to the menu:

 

At the top of your (.ascx) skin:

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

 

In the menu code:

<dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" >
        <CustomAttributes> <dnn:CustomAttribute Name="RenderMode" Value="UnorderedList"/></CustomAttributes>
</dnn:NAV>

Of course you can supply other properties as well. Note: you can’t use the CustomAttributes in a HTML skin.

 

You can find a sample skin on codeplex. This skin does not have the UL feature.

 

Forum post referenced here.

Tags:

2 comment(s) so far...

Re: How To: Getting dnnNAV to output an unordered list menu

Hi Peter, I should of course point out that if you install my (free) DotNetNuke menu then changing just two characters in your ASCX gets you the best of both worlds - a standard DNNMenu with fully compatible styling (including per-tab styles but not including the positioning bugs), and a UL rendered beneath it. Not to mention the other templates for treeview, accordion, etc!

By Mark Allan on   maandag 14 december 2009

Re: How To: Getting dnnNAV to output an unordered list menu

@Mark, Yes, sometime in the future I should certainly try your menu. It is a great contribution to the community. Thanks!

By Peter Schotman on   dinsdag 15 december 2009

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Login    Copyright 2009 interApps - websites & internet oplossingen   
Tuesday, September 07, 2010