Suckerfish dropdowns

Posted on Friday 9. March 2007 by Sebastian Dammark at 01:55

Hi Folks

This blogpost is on creating dropdowns with XML/XSLT menu the suckerfish kinda way.

This example only generates level 1 dropdowns.

In the attached file is 3 files.

  1. ClientScripts.js

  2. Menu.css

  3. LIClean_dropdown.xslt

The ClientScripts.js file should be selected under 'Stylesheet > Page > Template > JavaScript' and the function InitializeMenu(); in 'Stylesheet > Page > Template > Body onload.

The Menu.css file should be selected under 'Stylesheet > Page > Template > Stylesheet'

Create a xml/xslt menu on your pagetemplate using the LIClean_dropdown.xslt as template. Remember to set the 'Fold out' option to Expand all.

That should be it.

// Sebastian

Attached files

Copyright 2010 Dynamicweb Software