Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike 81 posts 101 karma points
    Oct 31, 2012 @ 23:18
    Mike
    0

    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!!!!!

  • Mike 81 posts 101 karma points
    Nov 03, 2012 @ 07:23
    Mike
    0

    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 &lt;= $maxLevelForSitemap]"> 

    ******** I tried putting all kinds of stuff here ********

    example: <xsl:if test="@nodeName = 'wanted node'">

    example: <xsl:if test="@level &gt; '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 &lt;= $maxLevelForSitemap]) &gt; 0">   

    <xsl:call-template name="drawNodes">    

    <xsl:with-param name="parent" select="."/>    

    </xsl:call-template>  

    </xsl:if> 

    </li>

    </xsl:for-each>

    </ul>

  • 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.

Please Sign in or register to post replies