DotNetNuke DDRMenu How to pass current TabID into xsl template

128 Views Asked by At

I am writing a DDRMenu template using xsl and I wonder how I can pass the current tabID into the xsl template. Can anyone provide an example on how to pass dynamic attributes into the xsl template files.

1

There are 1 best solutions below

1
On

A good resource for DDRMenu template examples is this. https://github.com/MarkXA/ddrmenutemplates

The full set of xslt node attributes are documented here.

I believe the tabId is the @id attribute:

<a href="{@url}" data-tabid="{@id}">
    <xsl:value-of select="@text" />
</a>