Topic: [Module] MassModifyDocGroup  (Read 3436 times)

Pages: [1]   Go Down

#1: 10-Mar-2006, 02:37 PM

Support Subscriber

luke.stokes
Posts: 54

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!)

* docgroups.module.txt (9.33 KB - downloaded 302 times.)
« Last Edit: 10-Mar-2006, 07:50 PM by luke.stokes »

#2: 10-Mar-2006, 03:01 PM

Foundation

rthrash
Posts: 11,352

WWW
Ohhh... Garryn/Mark... let's add this to the bulk document manager. Smiley

Good idea?

MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#3: 10-Mar-2006, 03:21 PM

Support Subscriber

luke.stokes
Posts: 54

Is that something that currently exists or is it coming out in a future release? Sounds like good stuff...

I'm really interested to see what happens with all the document security stuff in the future. There's been a lot of talk about it on the forum with all kinds of views. Is there a document roadmap for future versions and what will (might) be included in them?

#4: 10-Mar-2006, 03:34 PM

Foundation

rthrash
Posts: 11,352

WWW
It's for (hopefully) 0.9.2... was thinking of combining Mark's ajax menu sorting plugin with Garryn's bulk template changer and this into one uber-ultility for bulk edits.
MODx is a content managmeent framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Please help us help you when asking for assistance and read the wiki. Searching the forums from the top level helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.

#5: 10-Mar-2006, 04:43 PM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,073

The best way to predict the future is to invent it

WWW
Man, you're making my day, thanks for this one !!!

Agreed about integrating this Grin
.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net

#6: 10-Mar-2006, 04:47 PM

Coding Team

garryn
Posts: 1,391

WWW
Ohhh... Garryn/Mark... let's add this to the bulk document manager. Smiley

Good idea?
Definitely a good idea!  Cheesy

I'd like to crack the bulk document manager over the weekend so this will get included for sure. (Mark, hope you're free for the next few days, lol!)

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've got a tingly feeling all over  Grin ... once the basic logic is in place for the module it would be great to keep expanding it to include all sorts of stuff.

Cheers, Garry

#7: 10-Mar-2006, 07:40 PM

Coding Team

garryn
Posts: 1,391

WWW
Now I've had chance to have a better look, this is some fine coding, Luke  Smiley

Before the new fandangled, all singing all dancing Document Manager is released I've made a preliminary update to this (hope you don't mind Luke  Wink ).

Basically, I've added the following:

* Applied the MODx theme
* Added validation for the Page ID to stop it crashing if non-numeric characters are entered
* Added option to remove a document group from a document and all documents underneath it in the structure.

Cheers, Garry

* docgroups.module.txt (9.32 KB - downloaded 260 times.)

#8: 10-Mar-2006, 07:54 PM

Support Subscriber

luke.stokes
Posts: 54

HUGE!!!

I just renamed it to MassModifyDocGroup and updated the attachment in the first post.

Thanks so much, it looks so pretty...

That's funny that I tested for a valid pageid but didn't think about how that SQL would blow up with a where string. I guess I kinda hoped that someone would do the cool stuff the modify parent does. If I ever get really bored I'll look at the code and set that up.

Thanks again, it looks so perty! I'm gonna steal this styling for other modules as well.

love it.

Maybe later I'll add searchable/unsearchable, publish/unpublish, etc...  shouldn't be all that hard to do.
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.