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...Using Modules a...Using Modules a...DDR Menu collapse function?DDR Menu collapse function?
Previous
 
Next
New Post
7/28/2011 4:40 AM
 
Hey,

i have a submenu that shows the childeren of the selected menu in the root. But it shows the childeren and all the subchildren.
I only want to see the subchildren of the current selected child and not the subchildren of the other childs. Any idea how to fix it.
Example (a= active child of menuitem 1):
Not
a
    a.aa
    a.bb
    a.cc
b
    b.aa
    b.bb
c
    c.aa
    c.bb

BUT
a
    a.aa
    a.bb
    a.cc
b
c

Any tips?
 
New Post
7/29/2011 10:05 AM
 
Hey Stephany
I think you will need to look at NodeSelector to achieve want you want..specifically NodeSelector="{root},{skip},{depth}"
See link below and and excerpt from that page here..perhaps this will help. 
Options documentation link

NodeSelector»

NodeSelector determines which part of the page hierarchy to show in the menu. Use:

  • NodeSelector="RootOnly" to show only the root level menu items (alias for *,0,0)
  • NodeSelector="RootChildren" to show all the children of the root menu item that is the parent of the current page (alias for +0)
  • NodeSelector="CurrentChildren" to show the children of the current page (alias for .)
  • NodeSelector="pageID" to show the children of a specific page
  • NodeSelector="{root},{skip},{depth}" (where {skip} and {depth} may be omitted). {root} is * for the root, . or 0 for the current page, -n for n levels above the current page, +n for n levels down from the root menu towards the current page, PageID to select a particular page by ID or PageName to select a particular page by name. {skip} if provided skips that number of levels (e.g. 0 shows the selected page, 1 shows its children). {depth} if provided specifies the number of levels deep to go (e.g. 0 for just the current level, 1 to include immediate children).
 
New Post
7/31/2011 3:17 PM
 
Hi Stephany, I'm afraid that's not a standard behaviour of DDRMenu. You'll need to implement the logic in your template instead (basically by only calling the subnode template if depth=0 or breadcrumb=1).
 
New Post
8/26/2011 12:10 PM
 
Could you expand on that at all?  I am trying to do the exact same thing and I thought that customizing XML and using the Node XML path would work but that is simply causing an error telling me the menu is currently unavailable. I would like to use this menu but unfortunately this collapsing behavior is important to my client so I need to figure this out.
 
New Post
8/30/2011 10:10 AM
 
I'm looking for the exact same solution. Anyone have an example/link of using the if/then statements in the Token Template file? Marks suggestion should be an easy fix, as I've tried every single combo of settings on the NodeSelector with no luck.

I had a css solution that works for the parent/children, but not when the child is the active page (seeing siblings).

Thanks for the help in advance.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DDR Menu collapse function?DDR Menu collapse 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