Developer forum

Forum » Templates » TopNavigation XSLT manipulation

TopNavigation XSLT manipulation


Reply

Hi,


 


I have a subMenu rendered through XML/XSLT! I am using the TopNavigation xslt file that comes with Dynamicweb, and I would like to add to the UL or the LI class the sort order of it's parent page.


 


For example, consider the following site structure.


 


Page A


  Page X1


  Page Y1


  Page Z1


Page B


  Page X2


  Page Y2


  Page Z2


Page C


  Page X3


  Page Y3


  Page Z3


 


When in page B for example, the rendered xml should be something like:


< ul class="Sort2" >


  < li > Page X2 < /li >


  < li > Page Y2 < /li >


  < li > Page Z2 < /li >


< /ul >


 


Best Regards,


Nuno


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno


 


You should be able to do like this:

 
Reply

Hi Nicolai,


 


I could not get it to work properly. Still a newby in XML/XSLT but the client changed his mind and want's different menus.


 


Thank you,


Nuno

 

You must be logged in to post in the forum