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, ...DNNNav2 - RenderMode not working?DNNNav2 - RenderMode not working?
Previous
 
Next
New Post
12/14/2010 4:10 PM
 
Working on a site that is running DNN Pro 5.05.01 (22) and I'm having a lot of difficulty getting the 'regular' DNNNav to style right - tables are a P.I.A. and styles are breaking under Compatibility mode and older versions of IE (It's a local government website and all the workers are still using IE6 so I'm having to do back flips to get everything to behave).

So, I finally got frustrated and figured I'd give it a whirl as a styled Unordered List. Only problem is that when I add the attribute RenderMode="UnorderedList"   to the menu item in the ASCX, nothing changes. I've also tried alternate ways of adding the attribute but I'm getting nothing. I recall when 5 was launched that RenderMode wasn't initially supported, but I'm hoping that by now it would be implemented.

Ideally, I'd like to keep using the core navigation provider since the more 3rd party modules, the more of a headache upgrades become.

Wells Doty Jr
Online Content Development
 
New Post
12/14/2010 4:28 PM
 
I have a blog article about it here: http://www.ralphwilliams.com/home/ent...

Hope it helps. Let me know if you have any questions.


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
12/14/2010 4:43 PM
 
Thanks Raplh! I've bookmarked that for future reference.

I've followed the instructions there, but am still not having any luck. Out of curiosity, my opening register tags are as follows:

<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LINKS" Src="~/Admin/Skins/Links.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/currentdate.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>

You'll notice I've added the UI.Skins register to the end, along with the Nav which was already there. Then, I changed my menu object to the following:

<dnn:NAV runat="server" ID="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="False" ControlOrientation="Vertical" CSSControl="MainNav" />
<CustomAttributes>
            <dnn:CustomAttribute Name="RenderMode" Value="UnorderedList" />
</CustomAttributes>
</dnn:NAV>

The Control Orientation is in there from the existing setup, and I've tried removing it but no luck.

Am I missing something obvious?

Wells Doty Jr
Online Content Development
 
New Post
12/14/2010 4:55 PM
 
I think I found it! It looks like you are self-closing the dnn:Nav element with a "/".


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
12/14/2010 5:08 PM
 
Yep, That was it! I'm not used to using the custom attributes so normally I just self-close my DNN objects... Sloppy practice I picked up along the way I guess. Thanks!

Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNNNav2 - RenderMode not working?DNNNav2 - RenderMode not working?


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