We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42184
    • 27 Posts
    The home page of my site has quite a complex layout so, although I would like it to remain editable by my Administrators user group I would like it to be uneditable by my Editors user group. I'm sure this question has been asked before, but searching the forum failed to return any relevant results. Can anybody help?
    • Make a resource group, connected to the Administrator user group, and put the home page in that resource group. Now only Administrator users can access it.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 42184
        • 27 Posts
        Thank you. I figured it out. For future reference this is how I did it.

        1. Create a new Resource Group (Security > Resource Groups).
        2. Edit the Resource to which you would like to restrict access (the home page in my case) and add it to the Resource Group you created.
        3. Edit the User Group to which you would like to restrict access (Security > Access Controls, right click user group and select Update User Group).
        4. On the Resource Group Access tab click Add Resource Group. Set the Resource Group settings as follows:

          • Resource Group: The group you created
          • Context: Manager
          • Minimum Role: Super User
          • Access Policy: Resource

        If there's a better way of doing it please let me know.
        • That's it wink

          Since this is MODx, you can do it pretty much in any order you please and usually from either end, but that's the basic idea. Resource group <-> user group, resource -> resource group, user -> user group.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 42184
            • 27 Posts
            Thanks for your help. I've struggled understanding security in MODX, but I feel I'm finally getting to grips with it. smiley
              • 42184
              • 27 Posts
              Further to my previous solution if you want editors to be able to view, but not edit a resource, you need to add two additional Resource Groups to the User Group for both the web and manager contexts with the Minimum Roles set to 'Editor' and the Access Policies set to 'Load, List and View'.
                • Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org