We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27716
    • 126 Posts
    I am trying to prevent the Top level of a tree being edited by a user.

    I want the user to be able to create resources UNDER that document, but not edit the document itself.

    If I change the access permissions it means that the user can no longer create resources under the doc.

    Any Suggestions?

    Stuart
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The "show protected pages" option in the Interface and Features tab of the Configuration should allow the user to create resources under the protected resource. I would suspect that the protected resource must already be set to be a "container".
        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
        • 27716
        • 126 Posts
        Thanks for your help Susan.

        I changed the configuration setting and now the user can see all the docs in the tree.

        It the top doc in the tree is still set as Container.

        However, when the user tries to create a resource on the top doc, (This doc has access permissions set to admin only), The user gets a message you do not have access permissions.

        Any Suggestions?

        Stuart
          • 3749
          • 24,544 Posts
          Tools | Configuration | allow_root.

          It’s off by default but necessary for users to create docs in the root.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 27716
            • 126 Posts
            Hi, Thanks again for your reply.

            I Tried this, But...

            The place I want the user to be able to create a doc is not in the root. It is one level Down from root.

            So under a doc that is under the root.

            Stuart
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              As Admin user, create a document where you want the user to be able to create documents. Leave it unpublished. The user will be able to duplicate that document and edit 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
                • 27716
                • 126 Posts
                Hi Susan,

                Yes!...I Think I follow!

                I will try that.

                Stuart