Hello, I am trying to make a simple link list with the pages that has the showInQuickNavigator = 0
here is my code so far:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<ul class="quicknav">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="$currentPage/ancestor::*"/>
</xsl:call-template>
</ul>
</xsl:template>
<xsl:template name="drawNodes">
<xsl:param name="parent"/>
<xsl:for-each select="$parent/* [@isDoc and string(showInQuickNavigator) = '0']">
<li>
<a style="color: #1745B1; font-weight: bold; text-decoration: none;"> » </a>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="siteName"/>
</a>
</li>
<xsl:if test="count(./* [@isDoc and string(showInQuickNavigator) != '1']) > 0">
<li>
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
</xsl:call-template>
</li>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
It only works properly when your on the parent/first node, if your under a node then it starts looping thats nodes children, can you guys see anything wrong with my script?