I'm developing a skin for DNN6 using the Superfish template from
http://dnnddrmenutemplates.codeplex.com/. I have already customized the CSS. I'm not familiar with XSL, but I have added a "firstlevel" to the top/root and a "secondlevel" to the initial vertical submenu through guesswork... now I need the ability to
add a class to the 3rd level of submenu that goes off to the right called "thirdlevel". Can anyone take a peek at my .xlst file and tell me how to do that?
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
xsl:output
method
=
"html"
/>
<
xsl:param
name
=
"ControlID"
/>
<
xsl:param
name
=
"Options"
/>
<
xsl:template
match
=
"/*"
>
<
xsl:apply-templates
select
=
"root"
/>
</
xsl:template
>
<
xsl:template
match
=
"root"
>
<
script
type
=
"text/javascript"
>
jQuery(function($) {
$("#<
xsl:value-of
select
=
"$ControlID"
/>").superfish(
<
xsl:value-of
select
=
"$Options"
/>
);
});
</
script
>
<
ul
class
=
"sf-menu firstlevel"
id
=
"{$ControlID}"
>
<
xsl:apply-templates
select
=
"node"
/>
</
ul
>
</
xsl:template
>
<
xsl:template
match
=
"node"
>
<
li
>
<
xsl:if
test
=
"@breadcrumb = 1"
>
<
xsl:attribute
name
=
"class"
>current</
xsl:attribute
>
</
xsl:if
>
<
xsl:if
test
=
"@first = 1"
>
<
xsl:attribute
name
=
"class"
>first</
xsl:attribute
>
</
xsl:if
>
<
xsl:if
test
=
"@last = 1"
>
<
xsl:attribute
name
=
"class"
>last</
xsl:attribute
>
</
xsl:if
>
<
a
>
<
xsl:choose
>
<
xsl:when
test
=
"@enabled = 1"
>
<
xsl:attribute
name
=
"href"
><
xsl:value-of
select
=
"@url"
/></
xsl:attribute
>
</
xsl:when
>
<
xsl:otherwise
>
<
xsl:attribute
name
=
"href"
>#</
xsl:attribute
>
<
xsl:attribute
name
=
"onclick"
>return false</
xsl:attribute
>
</
xsl:otherwise
>
</
xsl:choose
>
<
xsl:value-of
select
=
"@text"
/>
</
a
>
<
xsl:if
test
=
"node"
>
<
ul
class
=
"secondlevel"
>
<
xsl:apply-templates
select
=
"node"
/>
</
ul
>
</
xsl:if
>
</
li
>
</
xsl:template
>
</
xsl:stylesheet
>