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, ...RenderMode in DNN Navigation Menu from HTML skinsRenderMode in DNN Navigation Menu from HTML skins
Previous
 
Next
New Post
3/8/2010 6:56 PM
 

Hi there,

We are creating DNN skins that use the DNN navigation skin object to generate menu's... these skins are created using the HTML skinning method, which then get parsed into ascx.

Now here's the issue : we want to output the menus using unordered lists, and with the Navigation Provider its possible to use custom attributes to pass the RenderMode parameter through, although these AFAIK can only be done via the ASCX files directly... (as there is no equivalent in the objects method in html skins)...

So what I have done is modified the nav base classes and navigation provider to accept the "RenderMode" property through the object tag in html skins for example:

          <object id="dnnNav2" codetype="dotnetnuke/server" codebase="NAV" >
              <param name="ProviderName" value="DNNMenuNavigationProvider" />
              <param name="ControlOrientation" value="Vertical" />
              <param name="Level" value="Child" />
              <param name="CSSNodeRoot" value="sub_dnnmenu_rootitem" />
              <param name="CSSNodeHoverRoot" value="sub_dnnmenu_rootitem_hover" />
              <param name="CSSNodeSelectedRoot" value="sub_dnnmenu_rootitem_selected" />
              <param name="CSSBreadCrumbRoot" value="sub_dnnmenu_rootitem_selected" />
              <param name="CSSContainerSub" value="sub_dnnmenu_submenu" />
              <param name="CSSNodeHoverSub" value="sub_dnnmenu_itemhover" />
              <param name="CSSNodeSelectedSub" value="sub_dnnmenu_itemselected" />
              <param name="CSSContainerRoot" value="sub_dnnmenu_container" />
              <param name="CSSControl" value="sub_dnnmenu_bar" />
              <param name="CSSBreak" value="sub_dnnmenu_break" />
              <param name="RenderMode" value="UnorderedList" />
            </object>

 Question is, can/should this be implemented in the DNN core?, or should we just create another navigation provider based off the original one?

 

 
New Post
3/8/2010 10:18 PM
 

Perhaps it would be ideal to use something like:

              <param name="Custom_CustomAttributeKey1" value="attribute value 1" />
              <param name="Custom_RenderMode" value="UnorderedList" />

To pass custom attributes through to an object.

 

 
New Post
3/9/2010 3:06 AM
 

This should have been in the core... but now I am not so sure anymore. In the future, I expect that the Telerik menu skin object is going to be the default standard. Furthermore, there are already a lot of menu skin objects on the market either free or for sale and most skinners I know use ascx skinning anyway. But you could log your solution (that is your code) in Gemini and maybe someone from DNN corp or the core team may pick it up.

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...RenderMode in DNN Navigation Menu from HTML skinsRenderMode in DNN Navigation Menu from HTML skins


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