Copied to clipboard

Flag this post as spam?

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


  • Henrik Hammarström 58 posts 54 karma points
    Dec 17, 2009 @ 21:01
    Henrik Hammarström
    0

    Sitemap public access

    Hi

    I have a couple of pages that are protected with public access

    How do I do that thes protected pages are not shown in the sitemap

     

    /Henrik/

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 18, 2009 @ 09:17
    Richard Soeteman
    0

    Hi Hendrik,

    If you create an xslt Sitemap and choose the Sitemap template to start with it's baked in for you.

    <xsl:if test="umbraco.library:IsProtected($parent/@id, $parent/@path) = 0 or (umbraco.library:IsProtected($parent/@id, $parent/@path) = 1 and umbraco.library:IsLoggedOn() = 1)">

    Cheers,

    Richard

  • 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