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, ...DDR Menu: Include only children of specified parent pages if activeDDR Menu: Include only children of specified parent pages if active
Previous
 
Next
New Post
9/26/2011 7:28 AM
 
Hi,

I am currenty working with the new DDR menu. I have a Razor template which outputs every node in an LI. I have two instances of the menu in my skin. One shows all root pages of specified pages (IncludeNodes). The other one should show the children of the current root tab.

The problem is, that the second menu instance shows the children of the Admin and Host tab (and other pages I don't want to show up), even if I specify to not include them (ExcludeNodes="Admin,Host").

How can I configure my menu to
  1. only show the subpages with specified parents
  2. or don't show the subpages of specified parents

This is my current configuration for the second menu:
<ddr:MENU MenuStyle="Nav/Sub" NodeSelector="+0,0,0" ExcludeNodes="Admin,Host" runat="server" />

Thank you in advance

Greetings from switzerland
Raphael
 
New Post
9/26/2011 11:21 AM
 
I would first try the DUMPXML MenuStyle.  This will allow you to see exactly what data is getting through to be rendered.  It is possible that the problem could be in the Razor renderer.  Assuming that DUMPXML still doesn't show the data, we can step through code to see exactly where the problem lies.

Joe Brinkman
DNN Corp.
 
New Post
9/26/2011 11:36 AM
 
Thank you for your answer.

I already tried the DUMPXML menustyle. The XML also contains the wrong data.

You can reproduce the error on a standard DNN installation if you add the DDRMenu to the skin (or to the page), configure it to show the subpages of the current root page (NodeSelector="+0,0,0") and set ExcludeNodes to "Admin,Host". If you go to the Admin tab, you will get the admin subpages, although it is configured to not show the Admin tab.

<ddr:MENU MenuStyle="DUMPXML" NodeSelector="+0,0,0" ExcludeNodes="Admin,Host" runat="server" />

Probably, this is not possible with the standard configuration. I think I'll exclude the pages in the razor template.
 
New Post
9/26/2011 1:21 PM
 
If I use the DDRMenu module I cannot seem to duplicate your experience.  The menu on the admin pages behaves as expected and doesn't show the admin or host menus.  The only way that those pages get shown is if I enable viewing hidden pages.  You shouldn't even need to exclude the admin and host menus since they are hidden by default.

Joe Brinkman
DNN Corp.
 
New Post
9/26/2011 5:32 PM
 
If you want one top menu and one side menu with the children of the selected main parent item than you keep the menu you already have ( since that will generate a one level uordered list menu

for the sidemenu you use the following

NodeSelector=”+0”

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR Menu: Include only children of specified parent pages if activeDDR Menu: Include only children of specified parent pages if active


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