ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Front-end access controls

May 14, 2012 12:50pm

Subscribe [2]
  • #1 / May 14, 2012 12:50pm

    Matthew81

    81 posts

    I have a few “sections” of my site that I want to assign restricted access privileges to, so that only selected member groups can view them.  However, I’m not sure of how to do this.

    I’d *like* to select certain categories (or sub-categories) that only certain member groups can view.  However, it appears that templates are (rather counter-intuitively) the place where front-end access controls are handled.  This is problematic because I’d like to use the same template in multiple categories, some of which will allow access to everyone and some of which will be restricted.  Duplicating a template based solely on its permissions seems unnecessarily complex when it is the category’s information that needs to be access-restricted.

    Or perhaps I’m barking up the wrong tree entirely and there’s a better way to handle front-end access restrictions?

    Thanks for any insight,

    Matthew

  • #2 / May 14, 2012 12:53pm

    Boyink!

    5011 posts

    You can use conditionals in one template that read the member group of the currently logged in user and return different content based on it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases