I have a EE website with around 20+ member groups and members from each of the membership groups should only have access to browse (front end only) certain channels of the website after signing in (front end).

Example: Membership group 'College 1' and 'College 2' should only be allowed to view channel 'book3', 'book5' and 'book7' when they browse the website (front end). I can do it in the template with condition, but it might be a bit messy to update the templates every time I add/remove a member group.

I've been trying to search for a solution, but have not found any yet, hopefully you have a solution.

Is this a function that is built-in in ExpressionEngine or if there are module you can recommend?


  • You're talking about limiting viewing channels on the front end of the website, not the control panel, right? – Romans-8---31-39 Jul 8 '13 at 2:27
  • Thats correct, just limited on the front end. Not giving them access to the CP – John Roe Jul 8 '13 at 3:15

You can limit the ability to view channel content by channel/member group combinations using HooBlong.

Bear in mind this is still in beta.

Don't be put off by the fact that the module can also be used to assign a member to more than one group - the front end channel control that you are looking for is built in for all memberships.

  • John, that looks interesting as its very time consuming to change the templates every time we have a new customer. How can I test this one out? – John Roe Aug 2 '13 at 3:03
  • Ok, I found out how to purchase it. Great – John Roe Aug 2 '13 at 3:07

You should try Zenbu module (http://zenbustudio.com/software/zenbu).

  • Thanks Bhashkar, Zenbu seems to be a overkill for what I'm trying to do, but it might be my only option... – John Roe Jul 8 '13 at 3:17
  • After talking to the developer of Zenbu module, this module does not solve the challenge I got with the front end of the website. Zenbu module is only for the backend. – John Roe Jul 14 '13 at 22:28

Although it may get complicated with 20 member groups, the basic way in EE is to wrap your content (either portions, or the whole page) in conditionals in your templates like:

{if group_id == 7 OR group_id == 8}
    show content

You can also use something to limit access to a whole page by redirecting if not in a group:

{if group_id != 7 AND group_id != 8}

To make things easier to manage, you might also make your most common 'access' conditionals snippets.

  • Thanks Romans, I thought of it the same, but it's not practical when I often add new groups. Sometimes 'college 2' will need access to 'book6' etc – John Roe Jul 11 '13 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.