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

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?

How Do I?

From EE Slack's avatar
From EE Slack
185 posts
one year ago
From EE Slack's avatar From EE Slack

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

       
From EE Slack's avatar
From EE Slack
185 posts
one year ago
From EE Slack's avatar From EE Slack

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.

       

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.