Developer forum

Forum » Development » XLST dropdown menu

XLST dropdown menu


Reply
Hi there,

I'm trying to make a dynamic dropdown menu - but i cant get the LIClean.xlst to throw out all the pages.

It shows all the level 1 items - but will only display level 2 items if i'm on the site with the level 2 items on it.

How do i et the dwnavigation to always get all pages ?

Regards,
Martin

Replies

 
Reply

Hi Martin,

Try to set “Fold out” to “Expand all” in the Manager Center->Designer->Stylesheets->Page->Template tab->Template edit->Menu (select and click on your menu item for edit). If it is not your case, please provide with some more details how you are making dropdown menu.

 Best regards,
Michael

 
Reply
I'm using the class="dwnavigation" tag so i guess it isn't in the same place?

As far as i've knowledged (I'm stille a newbie) then it's LIClean.xlst it will use for generating the menu.
 
Reply

In that case you should set property expandmode:all, for example:

div class="dwnavigation" id="myId" settings="startlevel:1;endlevel:5;template:LIClean.xslt;expandmode:all;id:top"

 BTW, LIClean.xslt created not for dropdown menu. Try to change it with DwddDropdown.xslt or add and use own xslt file. Just place it into \Files\Templates\Navigation folder.

 
Nicolai Høeg Pedersen
Reply
Hi Martin

In /Templates/Navigation you can find the xslt that Michael mentions. Copy them to your designs navigation folder.

Also take a look at the navigation chapter in the documentation:
http://engage.dynamicweb.dk/Admin/Public/Download.aspx?File=Files%2fFiler%2fDocumentation%2fDesign%2f(en-US)+Designs+and+Layouts.pdf

Also find the templates for dropdown attached.
 
Reply
It worked, thanks alot!

 

You must be logged in to post in the forum