luke.stokes Reply #1, 6 years, 2 months ago
If anyone is using Document Groups and User Groups to provide edit access to their site, this will hopefully be usefull. If you've ever had someone say, "Hey, I want to give so and so permission to edit this major section of the website." You're thinking... greaaattt... there are 100 documents under that section. Do I really want to create a new doc group and manually add all those documents to it?
Well, this module will make your life easier. Just select the document group you want the documents to be a part of, add a page id, and that's it!
This code could probably be expanded to do all kinds of cool things as well (set a whole section of the site as unsearchable, mass add keywords and metatags, unpublish a whole section of the site, etc, etc...)
I don't generally make things that look cool, but hopefully they work. If someone wants to style this up, that would be great. Also, if it used the code to pick a doc from the tree (like when setting a new parent), that would be cool too.
Please Note: there are no security checks here so make sure you only allow your full admins to run this module.
Enjoy!
(Modified 3/10/06: Thanks Garry, looks awesome!)
Well, this module will make your life easier. Just select the document group you want the documents to be a part of, add a page id, and that's it!
This code could probably be expanded to do all kinds of cool things as well (set a whole section of the site as unsearchable, mass add keywords and metatags, unpublish a whole section of the site, etc, etc...)
I don't generally make things that look cool, but hopefully they work. If someone wants to style this up, that would be great. Also, if it used the code to pick a doc from the tree (like when setting a new parent), that would be cool too.
Please Note: there are no security checks here so make sure you only allow your full admins to run this module.
Enjoy!
(Modified 3/10/06: Thanks Garry, looks awesome!)

).