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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIsample output of dnnmenu callback functionsample output of dnnmenu callback function
Previous
 
Next
New Post
9/25/2006 8:45 AM
 

Jon, or someone else

I wanna start converting over some of my skins to the new dnnmenu. I have seen all the classes for this but what i also need is a standard html structure that is outputted by the javascript callback function. This makes it easier to test out css and layouts

Armand

 

 

 

 

 

 
New Post
9/25/2006 4:10 PM
 
I believe we discussed this morning.  Open page in FireFox, choose View Generated Source (with the Web Dev toolbar).

 
New Post
9/25/2006 4:37 PM
 

yeah i saw you online after I posted this so we discussed it

I have the strcuture now 3 nested spansfor one menu item ( even empty ones )

what is the reson you choose this weird html strcuture and not a semantic  nested unordered list strcuture that is used in practically any menu system and opensource portal systems

 

Armand

 

 
New Post
9/26/2006 10:22 AM
 

The structure of a root menu item is as follows.  

Note:  I am removing some additional attributes for clarity

<div class="NodeDefault" id="ctr1" title="bin">

<span class="NodeIconDefault">

<img id="icn1" src="images/folder.gif">

</span>

<span id="t1" class="NodeText">

RootMenuItem

</span>

</div>

 

Not sure what you find weird about this.  The span surrounding the image allow you to style the image with css, even when their is no image present.

The Span around the text allows you to style the text display.

The containing div allows the container of the entire item be styled.

The structure of a sub-item is as follows.

<div class="MenuClass" id="sub_1_1">

<div class="ChildNodeDefault" id="ctr_1_1_1">

<span class="NodeIconDefault">

<img id="icn_1_1_1" src="images/file.gif">

</span>

<span id="t_1_1_1" >

SubMenuItem

</span>

</div>

</div>

The only difference here is the containing sub_1_1, which allows for the entire sub-menu to be styled.

As to the reason I stayed away from a nested list structure, two come to mind, but their are probably more.

1)  I don't see the need for using them,  what do they offer that this structure does not? Remember none of this HTML is sent down over the wire.

2) To support Populate On Demand, I did not want to worry about inserting items into an existing hierarchy. 

You sound rather opinionated when you say that practically any menu system does things a certain way, yet you seem to be thinking that the approach that I take with the menu is the same as every other menu.  I don't think so.  Most menus out there transmit HTML markup from the server.  I do not.  My reasons for not choosing to send HTML over the wire are specified in this document.


 
New Post
9/26/2006 10:47 AM
 

Hi

Well im very opiniated on this because an unordered list structure is used most in other opensource portal systems. This way you will always have navigation ( even if its not styled but just a simple unordered list if there is no css applied )

If you disable javascript these menus will also work ( for a nested unordered list you can create menus with no javascript in the standard browses but you just see a bare link list in ie )

This also means that non javascript browsers wont work with DNNMENU - so screenreaders that dont handle javascript that look at a dnn page only see the homepage and none of the extra link because the dnnmenu uses a javascript call ( this makes it unusable for sites that demand a better acessibillity - so ecommerce sites and sites that follow new govermental guidelines and sites for governmental agencies )

 

 

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIsample output of dnnmenu callback functionsample output of dnnmenu callback function


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