Copied to clipboard

Flag this post as spam?

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


  • Eddie Foreman 215 posts 288 karma points
    Jul 29, 2010 @ 10:05
    Eddie Foreman
    0

    Create a menu based on a member's membergroup

    Hi All

    Just wanted to check if something is possible with an xslt or if I need to create a usercontrol.

    In the site stucture below the client area folder would be set to private access, using role based protection. 

    site stucture of:

    • Home
    • ...
    • Client Area
      • landing page
      • Client One
        • Project Updates
        • ...
      • Client Two
        • Project Updates
        • ...
    • ...

    The plan is to create a member group for each client and then assign members to a membergroup.  When a member has logged they are taken to the client area landing page, where a sub menu is created that only provides access the pages within their own folder.

    • Client One
      • Project Updates
      • ...

     Or possibly they are redirected straight to their own folder, once logged in.  I.e. www.site.co.uk/client-area/client-one/.

    Due to start the dev work shortly, but just really checking to see what options are available to me.

    Likely to use:

    Umbraco 4.0.4.2

    Thanks in advance

    Eddie

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Jul 29, 2010 @ 14:31
    Matt Brailsford
    1

    Hi Eddie,

    What you've described sounds like the right solution to me.

    Within your XSLT you can just make use of some of the umbraco library methods to do then checks for you. The ones you'd be most interested in are:

    • umbraco.library:AllowedGroups
    • umbraco.library:IsProtected
    • umbraco.library:HasAccess

    Using these you should be able to easily filter your results based upon the users permisions.

    Matt

  • Eddie Foreman 215 posts 288 karma points
    Jul 29, 2010 @ 16:34
    Eddie Foreman
    0

    Hi Matt

    Superb, just the info that I needed. 

    Thanks again

    Eddie

  • 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