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, ...Trying to display only Root and Parent Menu Items - ExpandDepth Not WorkingTrying to display only Root and Parent Menu Items - ExpandDepth Not Working
Previous
 
Next
New Post
3/14/2011 12:04 PM
 
Ok... i've spent some time researching this but i'm missing something in my Dnn Nav Menu statement.

Issue: I just want to display the Root menu items and the First level parent flyout menu. "NOT" any child menu items from the parent.

I tried Expand Depth... but all I get is the Root Menu displayed and no first level parent flyout. Can someone please advise how i could alter my DNN Nav code below to just display the Root level and 1st level parent menu items "without" displaying the sub sub children items?


Code:

<dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="False" ControlOrientation="Horizontal" CSSControl="mainMenu" ControlAlignment="Left" Tooltip="Title" Level="Parent" PopulateNodesFromClient="False" ExpandDepth="1" />


Unfortunately, the above code does not work.

Please advise...
Thanks

 
New Post
3/15/2011 4:46 AM
 

I'm not 100% sure on this one, but one thing I did notice is that you've set the level to Parent, when I think it should be Root.

I'd recommend looking at the menu options in the Demo Skins exampled by Timo: http://dnnskinextensions.codeplex.com/ , he shows you how to render the menu as a list (which will be easier to style and be better for SEO) and how to set it up to show only the root menu and one sub menu.

Hope this helps,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
3/15/2011 11:44 AM
 
Thanks Rick for the reply...
I did change Level="Root"  and all that did was disable menu drop down fly-outs altogether. So i removed it completely to the code below...

Code:

<dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="False" ControlOrientation="Horizontal" CSSControl="mainMenu" ControlAlignment="Left" Tooltip="Title" PopulateNodesFromClient="False" ExpandDepth="1" />


This did not work either...

Unfortunately, due to deadline constraints and the fact that there is CSS customization specific for this menu, I'm having to stay with using DNNMenuNavigationProvider


In the future i will consider using a list menu but at this late stage, i'm not in that position...
I've reviewed the skinning guide... and have tried everything... I will also continue to review and try the link you suggested... I was hoping this would be a simple quick fix... i'm just not in the position to change away from the DNN Menu.

Is there a work-a-round i can try?
 
New Post
3/15/2011 1:20 PM
 
This is strange... according to the Style Guide, PopulateNodesFromClient="False" ExpandDepth="1" should work for DNNMenuNavigationProvider type menu but its not...

Perhaps I'm missing a setting or something?

Please advise....
Work-a-rounds welcome....

Thanks
 
New Post
3/17/2011 1:28 AM
 
well...
I FIXED IT... the key was ExpandDepth=2 and NOT 1 AS value 1 will obviously only display the ROOT but if you set it to a value of 2 then you get the ROOT and First Level Fly-out without the children.

Full code sample below.
<  dnn:NAV runat="server" id="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="False" ControlOrientation="Horizontal" CSSControl="mainMenu" ControlAlignment="Left" Tooltip="Title" PopulateNodesFromClient="False" ExpandDepth="2"    />
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Trying to display only Root and Parent Menu Items - ExpandDepth Not WorkingTrying to display only Root and Parent Menu Items - ExpandDepth 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