Copied to clipboard

Flag this post as spam?

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


  • syn-rg 282 posts 425 karma points
    Oct 16, 2012 @ 07:38
    syn-rg
    0

    How to exclude document types from Flexible Navigation?

    Can someone tell me how I to exclude document types from the Flexible Navigation?

    How do I edit the XSLT to allow for an array or list of document types to be excluded from the navigation?

    Has there been advance on the following suggestion: http://our.umbraco.org/projects/website-utilities/cogworks-flexible-navigation/bugs,-ideas-and-questions/15216-Suggestion-Option-to-exclude-document-types

  • René 327 posts 852 karma points
    Oct 16, 2012 @ 10:23
    René
    0

    HI 

    Have you tried the UmbracoNavihide - and then check this one

     

    René

  • syn-rg 282 posts 425 karma points
    Oct 17, 2012 @ 00:32
    syn-rg
    0

    No I'm looking for a way of excluding document types.

    I'm creating a very large image gallery, and do not want each individual image displaying in my navigation. Having to check a true/false checkbox on each page wouldn't be practical.

  • René 327 posts 852 karma points
    Oct 17, 2012 @ 07:57
    René
    0

    Hi 

    Ooh - sorry i misunderstood your question.

    René

  • syn-rg 282 posts 425 karma points
    Oct 18, 2012 @ 04:38
    syn-rg
    0

    I've found that this works well as a short cut, but I'd still like someway of creating an array or list of excluded document types.

    First hide ancestorSelected state:

    <!--Is the node a branch? i.e. are there children and is it in the colletion of ancestor nodes -->
       
    <xsl:variablename="isBranch">
         
    <xsl:choose>
           
    <xsl:whentest="$currentPage/ancestor-or-self::*[@isDoc][@id = $currentNodeID]/child::*[@isDoc][name() != 'MyDoctypeAlias']">1</xsl:when>
         
    </xsl:choose>
       
    </xsl:variable>

    Then hide the child nodes (hasChildren):

    <xsl:variablename="hasChildren">
         
    <xsl:choose>
           
    <xsl:whentest="./*[@isDoc][name() != 'MyDoctypeAlias']">1</xsl:when>
         
    </xsl:choose>
       
    </xsl:variable>
Please Sign in or register to post replies

Write your reply to:

Draft