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
    Sep 06, 2009 @ 20:26
    Henrik Hammarström
    0

    Public access subpages with membership

    Hi there

     

    I Dont know how I should think here

    I have a menu structure like this

     

    Startpage

    -Page1

    -Login Page

        --Protected page 1

        --Protected page 2

        --Protected page 3

    -About us

     

    How should I do if want a user to see links to the tree protected pages after a grantes logged in user.?

    Should a place an IF statement in the xslt code or how ?

     

    /Henrik

     

  • Chris Koiak 700 posts 2626 karma points
    Sep 06, 2009 @ 20:36
    Chris Koiak
    0

    There are 2 umbraco library method call you can use to do this.

    IsProtected && HasAccess

    Have a look at the ClientArea project for a starting point for Umbraco security.

    http://our.umbraco.org/projects/clientarea

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 06, 2009 @ 21:16
    Dirk De Grave
    0

    Henrik,

     

    Here's two methods that are quite useful in checking access to protected pages from within xslt:

    umbraco.library:HasAccess()
    umbraco.library:IsProtected()

    Both methods are available through the 'insert xsl:value-of' dialog. (Get extension button, choose umbraco.library from dropdown)

     

    Cheers,

    /Dirk

  • 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