Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Apr 04, 2013 @ 15:17
    René
    0

    Hide doctype from navigation

    HI 

    Umbraco v6.0.2 (Assembly version: 1.0.4811.18151)

    I have a cog navigation an now i want to hide one doc type "FAQPost"

    I struggeling to get it to work, and i cant get the othere forum posts about the issue to work.

    Any suggestions?

     <!--for each node in the parent node that is not hidden by Umbraco-->
          <xsl:for-each select="$parentNode/*[@isDoc][
                              string(umbracoNaviHide) != '1'
                              and ($securityTrimming != '1'
                              and name() != 'FAQPost'
                                or umbraco.library:IsProtected(@id, @path) = false()
                                or umbraco.library:HasAccess(@id, @path) = true())
                            ]">
    

    Kindly René

     

     

     

  • René 327 posts 852 karma points
    Apr 04, 2013 @ 23:30
    René
    100

    Hi 

    I found the solution.

    Add the last [name()!='YourDocType' or name()!='YourDocType'] and then it works.

    René

     <!--for each node in the parent node that is not hidden by Umbraco-->
          <xsl:for-each select="$parentNode/*[@isDoc][
                              string(umbracoNaviHide) != '1'
                              and ($securityTrimming != '1'
                                or umbraco.library:IsProtected(@id, @path) = false()
                                or umbraco.library:HasAccess(@id, @path) = true())
                            ][name()!='YourDocType' or name()!='YourDocType']">
Please Sign in or register to post replies

Write your reply to:

Draft