Developer forum

Forum » Templates » .xslt menu with dropdown not working

.xslt menu with dropdown not working


Reply
Hi.

I've been working with the "new" layouts and designs. But I'm having problems with the xml menu.

I've used DwddDropdown.xslt (standard)

Incorporated it in my index.html with this piece of code:

<ul class="dwnavigation" id="topnav" settings="startlevel:1;endlevel:2;template:DwddDropdown.xslt;"
</ul>

It all seems to work. BUT, only when the active link (the page viewed frontend) is within the menu with submenus. The dropdown panel is not shown when you're on another page on the site.
(a bit hard to explain, but have a look at http://netdk.net.dynamicweb.dk/da-DK/netdk.aspx )
Works fine when viewing netdk and submenus, but not on ex. hosting.

What could be the problem? Since it's all standard templates (with some custom css).

Replies

 
Nicolai Høeg Pedersen
Reply
You need to change the expand mode so it includes all nodes from first to levels:

<ul class="dwnavigation" id="topnav" settings="startlevel:1;endlevel:2;template:DwddDropdown.xslt;expandmode:All;"
 </ul>
 
Reply
perfect :D

Working as it should now. Thanks.

 

You must be logged in to post in the forum