<xsl:template name="drawNodes"> <xsl:param name="parent" /> <!-- only show 4th level subpages when the current page or ancestor is the parent <xsl:if test="$currentPage/ancestor-or-self::*/@id = $parent/@id"> --> <xsl:variable name="nodes" select="$parent" /> <xsl:if test="count($nodes) > 0">
The menu lists all of the sub pages of a section. I would like to only show the 4th level sub pages when the current page or ancestor is the parent. I normally do this with an if statement which I have commented out, as on this occasion it does not produce any menu when used.
Would be grateful a fresh pair of eyes could take a look at the above xslt
Help with sub menu
Hi All,
Been working on the following xslt for Umbraco 4.11.10
The menu lists all of the sub pages of a section. I would like to only show the 4th level sub pages when the current page or ancestor is the parent. I normally do this with an if statement which I have commented out, as on this occasion it does not produce any menu when used.
Would be grateful a fresh pair of eyes could take a look at the above xslt
Thanks,
Eddie
is working on a reply...