We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41970
    • 79 Posts
    Can anyone please help me with this: I just finished a site and I want the client to immediately see a specific folder inside the resource browser (for the images he uploads). I am not a "hardcore programmer", but more a "designer/soft-programmer hybrid", so I would really appreciate if someone could guide me through that process. Also, how to set up the system so that the client can only see and edit certain resources? All the tutorials I found sound so difficult/confusing to me........
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      It sounds confusing because it is confusing. Do you have Bob's book? If not, Bob's Guides is a good place to start, as well as the RTFM, the video within, and all the other tutorials.

      http://rtfm.modx.com/display/revolution20/ACLs
      http://lithiumlab.com/modx/revo_permissions.html
      http://modxpo.eu/2012/schedule/sessions/modx-revolution-security-permissions-system
      http://jgulledge.wordpress.com/2010/07/31/learning-modx-tutorial-2-permissions/
      https://vimeo.com/13785684
      http://bmv-interactive.com/home/modx-acl-tutorial.html

      The one thing you should do first is set up your "allDocs" resource group, add yourself to this group, and put every resource into it. Then, if you're going to be adding any resources in the future, get Bob's DefaultResourceGroup plugin and configure that to put every new resource into that allDocs group. Then, you can make the new resource group for the editors and selectively add resources to it. Make sure to test the editor users in a separate browser, if you're logged into the site as admin, you'll see all the resources.

      Be very careful, as you can lock yourself out of the manager easily. Make sure to add yourself to any resource or user group you make. It's actually a good idea to test this on a completely different MODX site before you implement it on a client's site. So much can go wrong, and then you're stuck with undoing everything just to get it usable.

      The media sources RTFM documentation should be enough to set up the media source for the editors, that's the easy part.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 41970
        • 79 Posts
        Thank you frogabob for this extensive information, I will start with this, and hope everything goes well smiley
          • 10208 ☆ A M B ☆
          • 1,780 Posts
          Good luck! It's not a simple task, and if you figure it out without any problems... we'll call you hardcore forevermore. :~}
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 3109 ☆ A M B ☆
            • 894 Posts
            Just make sure you give enable the sudo checkbox for your user account in the Manage User options to prevent you from locking yourself out of MODX if you set the permissions wrong.

            To test make sure you run another browser or an incognito window with a test user account with the permissions you want to test, MODX ACLS are very frustrating and will drive make you hate MODX if you don't understand how it works but when you do you will love it.

            Like Frogabog said if you run into problems just post them here.

            Good luck and try not to go crazy.
              Benjamin Marte
              Interactive Media Developer
              Follow Me on Twitter | Visit my site | Learn MODX
              • 41970
              • 79 Posts
              Thank you, I am kind of terrified with all that, because I don't want to lock myself out lol
                • 3749
                • 24,544 Posts
                Thanks to Frogabog for recommending my book, but what you really want is information on Media Sources and they didn't exist when I wrote the book. I didn't want you to be disappointed if you bought it (though there are a couple other things in there that you might find useful). wink

                Also, I hate to contradict Frogabog, whose advice is generally fabulous, but the references in the post above are mostly for managing access to Resources and Elements. If I'm understanding you, you want to limit access to physical files, which means Media Sources -- another thing altogether.

                If it makes you feel any better, I wrote the Official Guide to MODX, but I'm still a little confused about Media Sources myself.


                BTW, once you've set yourself up as a "sudo" user and flushed permissions and settings, it's almost impossible to lock yourself out. smiley


                  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
                  • 41970
                  • 79 Posts
                  Hi BobRay,

                  I am going to buy your book anyways, I hope I can get a Kindle version wink
                  You are right, I am looking for limiting the resource browser folders to the client, because that's one thing I find really confusing in modX, that this is so complicated to manage.
                  However, I haven't done anything yet, working on other projects and the client is still reviewing the site and sending changes, but one day or the other I'll have to get to it. Not looking forward to. If it happens that I figure it out, I might post a "newbie" tutorial wink

                  Thanks for all your help in here so far, great community!

                    • 3749
                    • 24,544 Posts
                    Thanks for the kind words. Welcome to MODX. smiley
                      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