x First time here? Check out the FAQ
  • Avatar102posts122karma

    Create a menu based on a member's membergroup

    Eddie Foreman started this topic 6 weeks ago , this topic was edited at: Thursday, July 29, 2010 4:34 PM, Go directly to the topic solution

    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


  • Replies

  • Matt Brailsford posted this reply 6 weeks ago

    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


  • Avatar102posts122karma
    Comment with ID: 40965
    Eddie Foreman posted this reply 6 weeks ago

    Hi Matt

    Superb, just the info that I needed. 

    Thanks again

    Eddie


Please login or Sign up To post replies