Copied to clipboard

Flag this post as spam?

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


  • Damien 36 posts 162 karma points
    Apr 24, 2014 @ 10:23
    Damien
    0

    hasChildren class still present if descendants are hidden

    Hi,

    I've noticed the "hasChildren" class is still present on list items even when the descendants are hidden, is this intended?

    Thanks

    Damien

  • Damien 36 posts 162 karma points
    Apr 24, 2014 @ 10:55
    Damien
    100

    Got it, change XSLT

    <xsl:variable name="hasChildren">
    <xsl:choose>
    
    <!--<xsl:when test="./*[@isDoc]">1</xsl:when>--> from this
    
    <xsl:when test="./*[@isDoc][string(umbracoNaviHide) != '1']">1</xsl:when> to this
    
    </xsl:choose>
    </xsl:variable>
    
Please Sign in or register to post replies

Write your reply to:

Draft