Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 11, 2011 @ 13:42
    Fuji Kusaka
    0

    Members Navigation

    Hi all,

    Does anyone know how to show certain node page  on a navigation to normal users and a different one to members when they will browse through the website. Not the back end.

    Let  say a normal user will browse the website and see 

    Documents

    > Speeches

    > Others

    while a member will see

    > Speeches

    > Corporate

    > Members

    > Etc....

    //fuji

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Jul 11, 2011 @ 13:56
    Tom Fulton
    0

    Hi Fuji,

    There are a couple helpers for this:

    umbraco.library:HasAccess(@id, @path)  and umbraco.library:IsLoggedOn()

    So you can do things like, select only pages the logged in member has access to:

    <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1'][umbraco.library:HasAccess(@id, @path)]">

    Or if you just want to test to see if a member is logged in:

    <xsl:if test="umbraco.library:IsLoggedOn()">...</xsl:if>

    Hope this helps,
    Tom

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 11, 2011 @ 14:52
    Fuji Kusaka
    0

    Hi Tom,

     

    Thanks for the Tip, we need to figure out how to make this plus a registration form where members will be able to choose the type of content they want to acess (member type bascially).

     

    //Fuji

  • 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