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 Channel Fields Per Member

November 13, 2012 1:56pm

Subscribe [1]
  • #1 / Nov 13, 2012 1:56pm

    bdcads

    30 posts

    Hi,
    I am not sure if this is possible in EE or not or if a plugin exists that I did not see
    but I was wondering is possible to restrict channel fields per user
    when they login on the admin, and was to add/edit a channel entry.

    For Example:
    User-A login in, have access to channel field A and B in the channel entry
    but when User-B login in, they have access to channel field C and D within the same channel entry. But User-A cant not edit or make changes to User-B channel field because it does not have access.

    I would like to restrict users in great detail to be able to restrict
    them to the particular channel fields
    instead of restricting areas within the admin panel

    hopefully this make sense
    much help is appreciated

    thanks!

  • #2 / Nov 13, 2012 2:58pm

    glenndavisgroup

    436 posts

    Hi bdcads,

    I could be wrong but I don’t think there is a plugin/add-on that can give you that level of restriction. The only way to do that is if you use SafeCracker and customize the access and edit screen UI based on member groups your self. Doing it this way means the users will not have access to the EE CP. It will all be done from the front end and you have to create the UI for the users and restrictions.

    Just curious as to why you would want to give some members access to one field and not others? Can you not just create 2 different channels and separate the fields to achieve this?

    I hope that helps.

    Mike

  • #3 / Nov 13, 2012 3:07pm

    bdcads

    30 posts

    For example:

    We might have a channel called “Inventory”, and it may have title, description, stock number, features, price, status. We’ll have sales people able to edit “description” and “features, but they are not allowed to edit any of the other information. Those are set/created when the listing is added by a manager or website admin.

    We just need to protect access to some of the content for each of the listings, where only approved people have permission to edit certain pieces of the information.

    This is the general type of “restriction” logic we’re after, but may be applied to other channels depending on what the content is. The general idea is the same, though.

  • #4 / Nov 13, 2012 4:55pm

    glenndavisgroup

    436 posts

    Ok for that you can customize the publish/edit layout for each channel and hide the fields that you don’t want them to see. To do that:

    - Login to the CP as super admin
    - Click to edit any channel entry you want
    - When the edit channel entry screen loads click the “show hide toolbar” link in the top right of the screen. This will give you options to move fields around or hide/show them as needed.
    - At the bottom of the fields you should see “Publish Layout” with member groups that you can check to save this layout for. Check which group you want to apply it to then scroll down and click the “Save Layout” button to save it.
    - Now logout and log back in to the CP as one of the members you save the layout for and check the publish/edit layout to make sure it looks the way you want it.

    Does that work for you?

    Mike

  • #5 / Nov 13, 2012 5:10pm

    bdcads

    30 posts

    I tried that,
    but for some reason when I go to Publish Layout and the Member group is only to the super admin
    it does not have a drop down list to the other member groups

  • #6 / Nov 13, 2012 5:21pm

    bdcads

    30 posts

    thanks Mike,
    that works!!! got it!

  • #7 / Nov 14, 2012 11:06am

    glenndavisgroup

    436 posts

    Great, I’m glad that worked for you.

    Cheers,

    Mike

  • #8 / Nov 15, 2012 1:33pm

    Dan Decker

    7338 posts

    Hi bdcads,

    Looks like Mike pointed the way to Publish Layouts! I’m glad that looks like a good solution for you!

    Is there anything else I can assist you with?

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases