Jul 05, 2009, 09:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1]   Go Down
  Print  
Author Topic: [Module] MassModifyDocGroup  (Read 2827 times)
0 Members and 1 Guest are viewing this topic.
luke.stokes
Support Subscriber
*
Posts: 54



« on: Mar 10, 2006, 02:37 PM »

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 275 times.)
« Last Edit: Mar 10, 2006, 07:50 PM by luke.stokes » Logged
rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #1 on: Mar 10, 2006, 03:01 PM »

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

Good idea?

Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
luke.stokes
Support Subscriber
*
Posts: 54



« Reply #2 on: Mar 10, 2006, 03:21 PM »

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?
Logged
rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #3 on: Mar 10, 2006, 03:34 PM »

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.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


Software is like sex, it's better when it's free !


WWW
« Reply #4 on: Mar 10, 2006, 04:43 PM »

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

Agreed about integrating this Grin
Logged

.: 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
garryn
Coding Team
*
Posts: 1,252



WWW
« Reply #5 on: Mar 10, 2006, 04:47 PM »

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
Logged

garryn
Coding Team
*
Posts: 1,252



WWW
« Reply #6 on: Mar 10, 2006, 07:40 PM »

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 228 times.)
Logged

luke.stokes
Support Subscriber
*
Posts: 54



« Reply #7 on: Mar 10, 2006, 07:54 PM »

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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!