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/29/2010 4:04 AM
 
Having looked at the example skin Ralph Williams provided I discovered that the same inline style appears there.  Further investigation led me to discover that this inline style is added by the javascript in the dnnmenu control .js file.  By setting ControlOrientation="Vertical" as a parameter to the NAV control I came around that problem.

However, the more I investigate, the more I am convinced that the default menu provider is, to my approach, broken.  Or, it works at what it does but it is built on a faulty premise.  The fault is that way too much is done with javascript, completely unnecessarily.  For example, all the useful classes for CSS styling of the menu (those which indicate the level in the menu, the breadcrumb trail, etc.) are added to the items after rendering the page, using javascript.  I really fail to see any advantage to this - why are they are not added when the list itself is rendered?  A menu is the most basic navigational tool on a website, and there is very little which cannot be done with CSS.  In my opinion the basic navigational tools on a website should not be dependent on scripting - and nothing should be dependent on scripting which is just as easy to do when rendering the page.

Whatever, it doesn't work for me.  The script also takes the <ul> elements containing sub-menus out of the relevant <li> and puts them after the main <ul> element with a calculate absolute position.  I want a menu starting at level 2 (or, technically level 3 in that I'm using the localisation extension from Adequation).  As such I want to be able to hide all at level 1 and all at level 2 except children of the level1 breadcrumb.  Easy with the initial <ul> structure (if you have the breadcrumb, etc. classes), much more difficult with the one after javascript has messed with it. 

Anyway, as I said, I don't want to be dependent on javascript - it never occurred to me the classes would be added with javascript.  I'll investigate the DNNGarden solution instead.

Thanks for the helpful comments.  I'm not meaning to rant at you guys :)
 
New Post
7/29/2010 4:38 AM
 
You can rant the menu as much as you want ;-)
The menu is more geared towards people who are not CSS specialists.
And I agree it has it's issues.
I don't like all the JavaScript either and I have created my own menu component (pure UL) because of this.
(I'm not the developer of the default menu..)


 
New Post
8/2/2010 3:32 AM
 
Just wanted to say thanks to all who replied to this thread.  Especially to Mark Allan - I ended up using his DDRMenu instead of the standard menu.  IMO this is what the standard menu should be - it's a backwardly-compatible drop-in replacement but it's extensible allowing the skin designer to customise the menu as they will.  (Actually, I think the standard menu should use actual links instead of postbacks as I've already explained, but I understand if, for backwards compatibility, the default replacement is a straight copy of the output of the standard menu for now)
 
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