Creating a New Resource Group
At present, there is no simple way in MODX Revolution to apply security restrictions to individual resources. All security restrictions apply to resource groups, so protecting a resource means that you have to create a resource group, add the resource to it, and create security permissions for that resource group.
The general method of protecting resources is to associate a specific Resource Group with a specific User Group
Here are the steps for creating a new Resource Group:
- Go to Security | Resource Groups
- Click on the "Create Resource Group" button
- Enter a name for the Resource Group
- Click on the Save button in the dialog
To place resources in the Resource Group:
- Click on the little triangle next to the Web icon to expand the tree on the right
- Expand the other parts of the tree as necessary to see the appropriate resources
- With the mouse, drag a resource or folder from the tree on the right and drop it on the Resource Group in the tree at the left.
- Repeat as necessary
Tip: Be careful not to left-click on a resource in the tree at the right or you'll end up editing it on the Create/Edit Resource panel. If that happens, use the "back" button in your browser to return to the Resource Groups panel.
Security Resources at Bob's Guides
- Revolution Permissions
- Evolution Permissions
- Revolution Security Cheatsheet
- Basic Security Tutorials
- Advanced Security Tutorials
- Revolution Default ACL Entries
If you have the book and would like to download the code, you can find it here.
If you have the book and would like to see the updates and corrections page, you can find it here.
MODX: The Official Guide is 772 pages long and goes far beyond this web site in explaining beginning and advanced MODX techniques. It includes detailed information on:
- Installing MODX
- How MODX Works
- Working with MODX resources and Elements
- Using Git with MODX
- Using common MODX add-on components like SPForm, Login, getResources, and FormIt
- MODX security Permissions
- Customizing the MODX Manager
- Using Form Customization
- Creating Transport Packages
- MODX and xPDO object methods
- MODX System Events
- Using PHP with MODX
Go here for more information about the book.
Thank you for visiting BobsGuides.com
— Bob Ray