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?
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!
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?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.