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, ...Menu with links instead of postbacks?Menu with links instead of postbacks?
Previous
 
Next
New Post
7/28/2010 8:27 AM
 
Hi,

Is it not possible to get the menu to render using actual links (<a> tags) instead of table cells with a postback?  Every page has a URL - when you click the menu you get sent to that page.  I really do not understand therefore why the default menu provider insists on using cells with some sort of javascript redirection?  I know asp is based on postbacks, but to me this behaviour is broken, and I'd like proper HTML links.  I work on web applications which require javascript, I have no problem that it is required for the admin interface to DNN and for certain modules where it is actually needed but to completely disable even the most basic navigation to text-and-picture only information pages in this way strikes me as wrong.  Also, even with javascript enabled, certain useful features (such as open in new tab/window) are unavailable to the end user with the standard DNN menu.

Is there really no option to the menu (or alternative menu provider) which will make it generate html links to the other pages?  I have tried with the ForceDownLevel="True" parameter.  This does give me links (great) but for some unnacountable reason misses all the useful classes denoting the level in the menu, whether it is part of the breadcrumb trail and whether it is the first item in a level.  This makes it very difficult to style the menu appropriately.

Ideally I'd like an set of nested <ul> (not a table) with classes indicating the first item, the level (item, sub-item, etc.) and whether it is the current page or part of the breadcrumb but with links to the pages, not just <span>s with text in.

Alternatively, is there not some sort of template I could alter myself?  I'd have thought that there should simply be an asxc file which receives the menu as some sort of array which one could just iterate through and generate one's own menu template?  Does such an option exist?

Adam
 
New Post
7/28/2010 9:16 AM
 
Hi Adam,

I have written an article describing how to use the dnnNav menu as an unordered list and how to style it. 

Rendering the DotNetNuke Menu as Unordered List & Styling It

Hopefully, this is what you are looking for.



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
7/28/2010 9:31 AM
 
 
New Post
7/28/2010 9:39 AM
 
Hi Adam, you could try my DotNetNuke menu provider. It's a templated system, and one of the templates allows you to keep the style of an existing DNN menu (or one of the old SolPart menus) but with proper hyperlinks. Alternatively you can use Superfish or even write your own template. And it's free :)
 
New Post
7/28/2010 10:09 AM
 
Thanks, that looks useful.  (Note: I've posted this question as a comment to Ralph Williams article on his blog too.  Cross-posting here in case someone else here knows the answer)

Except that when I try your code for the menu control I get the following style attribute on every li element:
style="display: inline; list-style: none outside none;"
Given this is an inline element style I cannot override it from the stylesheet so I cannot get the menu items to have display block (or even to appear as an unordered list).  I therefore assume you didn't have this inline style attribute?  Any ideas where it has come from and how to get rid of it?

Adam
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Menu with links instead of postbacks?Menu with links instead of postbacks?


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