Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey XSLT Guru's, I could use some help to change the sitemap to list out a certain set of nodes.
Example:
node1
node1child
node2
node2child
node2childChild
node3....etc
I would like to display the following sitemap
etc
Your help is much appreciated!!!!!
Can anyone assist me?
I tried numerous jabs at this and just have no idea what to do
<ul>
<xsl:for-each select="$parent/* [@isDoc and string(umbracoNaviHide) != '1' and @level <= $maxLevelForSitemap]">
******** I tried putting all kinds of stuff here ********
example: <xsl:if test="@nodeName = 'wanted node'">
example: <xsl:if test="@level > '2'">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/></a> Level: <xsl:value-of select="@level"/>
<xsl:if test="count(./* [@isDoc and string(umbracoNaviHide) != '1' and @level <= $maxLevelForSitemap]) > 0">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
</xsl:call-template>
</xsl:if>
</li>
</xsl:for-each>
</ul>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
manipulate sitemap xslt to show only certain set of nodes
Hey XSLT Guru's, I could use some help to change the sitemap to list out a certain set of nodes.
Example:
node1
node1child
node1child
node2
node2child
node2childChild
node2childChild
node2child
node3....etc
I would like to display the following sitemap
node2child
node2childChild
node2childChild
node2child
etc
Your help is much appreciated!!!!!
Can anyone assist me?
I tried numerous jabs at this and just have no idea what to do
<ul>
<xsl:for-each select="$parent/* [@isDoc and string(umbracoNaviHide) != '1' and @level <= $maxLevelForSitemap]">
******** I tried putting all kinds of stuff here ********
example: <xsl:if test="@nodeName = 'wanted node'">
example: <xsl:if test="@level > '2'">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/></a> Level: <xsl:value-of select="@level"/>
<xsl:if test="count(./* [@isDoc and string(umbracoNaviHide) != '1' and @level <= $maxLevelForSitemap]) > 0">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
</xsl:call-template>
</xsl:if>
</li>
</xsl:for-each>
</ul>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.