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 Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

DDR Treeview | Expand active (selected) menu list item

Return to previous page

  • 5/30/2017
  • 1926 Views

Question:

Denis O'Connor 7 years ago

I have a ddr treeview menu setup w/ default 'closed' state. If I remove 'closed' it expands all menu list items but I am looking to only expand the active or 'selected' menu list item. See the template.xslt code template I used here -

https://github.com/MarkXA/ddrmenutemplates/blob/ma...

This is my current treeview menu state on page load:



And this is when I click open menu item but I wish for it to default to this state (only active list item open):



Is there a control in the treeview.js file to control this or is there a bit of jquery to overwrite this to attain my desired outcome?

Thx...

Sign In to Participate
Or register to become a member