-
☆ A M B ☆
- 326 Posts
So I build this wonderful site on MODx, and with some judicious use of ManagerManager and various permissions settings, I’ve made it almost completely idiot-proof. However, as I’m standing over the shoulder of a user as they add a page, I watch them click the icon of a document, choose "Create Document Here" from the pop-up menu, and subsequently turn the original document into a folder and place this new document within it.
This is bad, not just because it will create a mess of a hierarchy, but also because the homepage is pulling the newest documents from this folder, which means this one didn’t show up (I could probably make it go deeper levels, but I don’t want to, if possible -- it will screw up other things that I would have to fix).
My question is, can I just prevent "Create Document Here" from working on certain elements? I’m fine with it working for the pages I want it to work for, but not for ones that could potentially screw up the site. Any ideas?
Can’t you restrict that with roles: Content management!
If its only editing you want to allow.
-
☆ A M B ☆
- 326 Posts
That would work, except they still need to be able to create new documents. I just don’t want them to create them in the wrong spots. What would actually solve this is not just the ability to restrict "Create Document Here," but to also restrict the turning of a document into a container. That way, they couldn’t accidentally create subfolders that wouldn’t be recognized by snippets on other pages (like Ditto).
One method is managerChunk(!)
-To link manager actions from the start page and hide the tree.
http://wiki.modxcms.com/index.php/Manager_Actions (and hover mouse in manager to see url in statusbar)
http://wiki.modxcms.com/index.php/Customizing_the_Manager_Homepage
Now in order to edit you have to manually link the docs or use PHP to get them from a parent,
or show the tree...
You could keep them in the front end (if that works for you) and have them create docs with NewsPublisher or something similar. Then you could control where the docs were created.
I think MODx Revolution would do what you want, but I don’t really understand its permission system.
-
☆ A M B ☆
- 326 Posts
Thanks for the suggestions! I think managerChunk may be a good solution for what I’m trying to do. Hadn’t seen that in the repository before, so thanks!