DotNetNuke Tips & Tricks

Monday, October 26, 2009 by Cuong Dang

DNNMenu Improved in DotNetNuke Version 5.1.4

Filed under: Tips & Tricks, Skinning

For those of you who are using DNNMenu (or DNNNav) from the core DotNetNuke framework, you might notice there is a huge change in DotNetNuke 5.x with the inclusion of DNNMenu version 2. The change for this webcontrol had not been well documented in details so people might find a hard time to get up to speed with what’s new when using it.

As you may know, many experts in the DNN forum have been talking about eliminating SolPartMenu and start using DNNMenu for years when developing skins, but the details about controlling the design of this challenging webcontrol isn’t easy to find or even unavailable out their on the web.

In DotNetNuke 5, the release of DNNMenu version 2 includes the major change in its HTML output. It is rendering menu items in a semantic markup approach using unordered list items. However, there is one issue with designing it since the author included inline CSS styling to the actual list items. The inclusion of inline CSS makes the process of designing a proper menu somewhat cumbersome since a designer has to find ways to work around its CSS.

In a recent project that I worked on, I noticed there’s a major shift of the design as I migrated from local development environment to production. I struggled for a bit and finally found out the latest version of DotNetNuke (5.1.4) has the “proper” DNNMenu. In this version, inline CSS were completely removed. I had to spend a little time to redoing the navigation, but it’s a great enhancement that hasn’t been documented (or at least to my knowledge that it hasn’t).

If you run into this issue, be sure to upgrade to the latest version of 5.x and you will love the core navigation again. For more information about how to use this control, please visit Jon Henning's blog to have a solid understanding of it.


Ralph Williams
Monday, October 26, 2009 6:16 PM
Thanks for sharing your find on this. I was not aware of the strides that had been made in the core menu.
Thursday, October 29, 2009 10:15 AM
blog comments powered by Disqus