We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

channel field group and user roles?

How Do I?

Riverboy's avatar
Riverboy
2,993 posts
about 11 years ago
Riverboy's avatar Riverboy

Is there any way to put up pretty large set of fieldtypes to one channel field group and show up different fields for different member groups?

example: Fieldtype: Grid - used for images and image related datasets = channel:form shows this field only to member group id 2, not for 1 and 3.

Without huge sets of conditionals put to the template (if-logged-in-group-id)…

Not possible, possible, doable, impossible?

       
Joshua McLemore's avatar
Joshua McLemore
6 posts
about 11 years ago
Joshua McLemore's avatar Joshua McLemore

If I understand right what you are trying to do, you can do this pretty easily.

When you are editing an entry (or creating for that matter), on the right hand side there is a little link at the top that says “show toolbar.” There you can show or hide fields and then save (at the bottom) that view for the different member types. It’s labelled “Publish Layout” and then lets you choose which member group to save the layout for.

Hope that helps and is what you were looking for!

       
Riverboy's avatar
Riverboy
2,993 posts
about 11 years ago
Riverboy's avatar Riverboy

Hi Joshua, Thats good for team members who has access to back end. I Havent thought about that, mainly because I was about to set up channel:form to be used front end, not via admin panel. Or does that work on those also? (havent ever tried).

Cheers.

       
Joshua McLemore's avatar
Joshua McLemore
6 posts
about 11 years ago
Joshua McLemore's avatar Joshua McLemore

Ah, that makes more sense. No that won’t work for the front end but you can use:

{if member_group == "1"} Your stuff for that group here. {/if}

See the docs here: https://ellislab.com/expressionengine/user-guide/templates/conditionals.html#member-group

Thing to note: if the person is not logged in, they will not meet the condition and so that information would not show to them as well.

Does that help?

       
Riverboy's avatar
Riverboy
2,993 posts
about 11 years ago
Riverboy's avatar Riverboy

Yep, i knew that. Might go with snippets to avoid messy template code..

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.