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.

Restrict viewing of certain categories per member group?

April 18, 2012 1:48pm

Subscribe [2]
  • #1 / Apr 18, 2012 1:48pm

    tr309

    24 posts

    Does anyone know if it’s possible to limit the viewing permissions for selected channel categories per member group?

    I have a blog channel with a number of categories but some of the categories are considered “premium” categories which only members of the “premium” member group are allowed to view.

    I’ve had a look at a couple of plugins but they don’t sound like they will provide the functionality I’m looking for.

    Thanks

    Rich

  • #2 / Apr 19, 2012 1:35am

    Yuri

    315 posts

    Did you consider Member Categories?

    I would suggest moving “premium” categories to separate group, display “public” categories to everyone and display “premium” categories only to members who are associated with those categories (in other words, display categories member is associated with + public categories)

    Be aware that you’ll also need to check for access permissions in exp:channel:entry - Member Categories does not restrict anything by itself, it only allows you to associate member with category.

  • #3 / Apr 30, 2012 3:33am

    tr309

    24 posts

    How would I check access permissions? Does Member Categories allow categories to be assigned to Member Groups?

    Many thanks,

    Richard

  • #4 / Apr 30, 2012 1:12pm

    Yuri

    315 posts

    Hi Richard,

    the categories can be assigned only to individual members, not member groups.

    You can use this example from the docs for setting up your templates, or use {exp:member_categories:check} to check permissions

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

ExpressionEngine News!

#eecms, #events, #releases