EE 1
EE 2
Restricted Area
Developer
3rd Party (Commercial)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
Tags
The Restricted Areas module lets you create areas of restricted content and allow access on group and/or member level.
In ExpressionEngine you normally handle this with member groups. You create a group (ID 5: Hockey) that is allowed to see Hockey and then check against the logged-in member’s group:
bc.
Likewise you create another one for Football (ID 6: Football):
bc.
Now if you want to allow some, but not all, members to see both sections you actually have to create a third member group (ID 7: Hockey+Football) because one member cannot belong to multiple groups at the same time.
bc.
If we added another section we would already need 7 member groups to handle access:
* Hockey
* Football
* Soccer
* Hockey+Football
* Hockey+Soccer
* Football+Soccer
* Hockey+Football+Soccer
bc.
*The Restricted Areas module uses a different approach to this problem.* First you define areas (or sections or whatever) of content and _then you can allow individual members or member groups_ access to these areas.
h3. Sample Usage
bc.. {exp:restricted area=“soccer”}
Welcome {screen_name}!
You have been granted access.
{no_access}
Go away!
{/no_access}
{/exp:restricted}
Restricted Area Links
This entry was last updated October 15, 2009, 7:12 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
1 Review:
Oxygen Smith 10.17.09
I’m using only the basic functions (to display placeholder content on a not-live part of the site while keeping the rest of the site live) but it’s pretty seamless. This module solves dilemmas with member levels that have been brought up many times on the forums.