ExpressionEngine 2024 Quarter 1 Review Quarter 1 Review
In a new project, I need to make a channels entries only accessible to certain members on the front-end.
Does anyone have any suggestions? If it were only one member per entry, I’d just set the author as the member then compare against the currently logged in user, but not sure what the best option would be for multiple.
In the given entry, my client needs to be able to select which members, then in the front-end template, I can run logic to show/hide dependant on the logged in user
So natively, you can now do this with the Members fieldtype and for another option, there’s GB Member Select.
Both work similar to Relationships, allowing you to select multiple members to in an entry.
In the case where you don’t want members who are NOT in the selected list to view the entry, you might do a comparison and redirect anyone not allowed.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.