Copied to clipboard

Flag this post as spam?

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


  • Mathias 9 posts 29 karma points
    Aug 31, 2011 @ 08:51
    Mathias
    0

    Page only visible for members - how to?

    Hi guys!

    ive been using the Public access to redirect a member to the login page, when the member login, the content of the page would be visible..

    but what i really want is a login page, and when the member login the new page will become visible in the menu - is this possible?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 31, 2011 @ 09:46
    Dirk De Grave
    0

    Mathias,

    I guess you'll have to change your xslt/code to update your menu so the page becomes visible to the member. Anyway, from xslt or code, you can use the IsProtected() and HasAccess() functions (in umbraco.library namespace) to check whether a page is protected and whether a member has access to a specific page.

     

    Cheers,

    /Dirk

  • Mathias 9 posts 29 karma points
    Aug 31, 2011 @ 09:48
    Mathias
    0

    Thanks Dirk!

    Do you have an example, becuase im not so good at coding..

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 31, 2011 @ 09:57
    Dirk De Grave
    0

    the xslt sitemap example which is available from the dropdown when you create a new xslt should have these functions...

     

    Cheers,

    /Dirk

  • ianhoughton 281 posts 605 karma points c-trib
    Aug 31, 2011 @ 17:57
    ianhoughton
    0

    Or you can try the cogworks menu package which also filters for logged in users.

Please Sign in or register to post replies

Write your reply to:

Draft