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  
Pages: [1] 2   Go Down
  Print  
Author Topic: [Module] Document Template Changer  (Read 11102 times)
0 Members and 1 Guest are viewing this topic.
garryn
Coding Team
*
Posts: 1,252



WWW
« on: Mar 05, 2006, 05:03 PM »

Hi all,

Ever wanted an easy way to mass change a document template on your site? Well, here you go ...  Smiley

This module has two ways of applying a different document template to your site. Firstly, by specifying ranges of document ID numbers, or secondly, by using a document tree to pick which documents you want to apply the document template to.

I would recommend that you use the Backup Manager to get a MySQL dump of your database the first time you use this module, just in case something should go wrong. Wink

Installation

1. Create a new module and paste the attached module code into it.
2. Run Module
3. Away you go - pick the new document template and specify the documents you want to apply it to.

Once the module has applied the new template, please ensure you click the 'Refresh Site' button for the template changes to take immediate effect.

As always, I'm open to suggestions on how this can be improved and would love to have any feedback/bug reports you have on this module.

Have fun,  Garry

* module_template_changer_v1.txt (20.97 KB - downloaded 886 times.)
Logged

zi
MODx Special Forces /
Administrator
*
Posts: 3,329


May Peace Be On You


WWW
« Reply #1 on: Mar 05, 2006, 06:51 PM »

Great Work Garry! GWG! Cheesy

Thanks for sharing,

regards,

zi
Logged

Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #2 on: Mar 05, 2006, 07:06 PM »

Nice one! GOOD JOB garryn. Thanks for the useful module. Wink
Logged

Dimmy
Testers
*
Posts: 1,898


Я не говорю по-русски 私は日本語を話さない


WWW
« Reply #3 on: Mar 06, 2006, 07:41 AM »

Nice job this saves a lot of time changing multiple templates

Thanks
Logged

"They say if you play a Microsoft CD backwards, you hear satanic messages. That's nothing, because if you play it forwards, it installs Windows."
Nederlands beste portal voor pda en mobiel internet
banzai
Testers
*
Posts: 870


MODx Italia


WWW
« Reply #4 on: Mar 06, 2006, 07:48 AM »

Very nice! thanks Garry
Logged

MODx Websites Showcase 
Add your site to www.modx.it!
-----------------------------------------------------
FREE MODx Templates
www.tattoocms.it
-----------------------------------------------------
VIDEO: whats new in MODx 0.9.5   | VIDEO: MODx PHP Application Framework  |  modx Revolution  

bubuna.com - Web & Multimedia Design
Djamoer
Emeritus
******
Posts: 1,495

No one can limit a man other than the man himself.


WWW
« Reply #5 on: Mar 06, 2006, 04:03 PM »

added to repository
Logged

chanh
Guest
« Reply #6 on: Mar 06, 2006, 04:33 PM »

It works!  Very nice!
Logged
stempy
Jr. Member
*
Posts: 48


« Reply #7 on: Mar 08, 2006, 04:07 AM »

Very nice Garry.
Logged
yoomai
Sr. Member
****
Posts: 261



WWW
« Reply #8 on: Mar 14, 2006, 03:06 AM »

Thank you, Garry. Works like a charm!
Logged

davidm
MODx evangelist
Marketing & Design Team
*
Posts: 7,026


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


WWW
« Reply #9 on: Mar 14, 2006, 04:22 AM »

Gee, how can I have missed this one for a week !

This is really awesome and a real TIMESAVER !!!
Thanks a LOT for this one !

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
bugsmi0
Sr. Member
****
Posts: 356


« Reply #10 on: Apr 11, 2006, 03:39 AM »

Gary, you really are a God  Shocked  very nice
Logged

rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #11 on: Apr 11, 2006, 08:15 AM »

If you think this is cool wait until you see the Document Manger Garry and Mark put together in the coming next release. Wink
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.
bugsmi0
Sr. Member
****
Posts: 356


« Reply #12 on: Apr 11, 2006, 10:54 AM »

forget the doc manager, make it so modx can import export database without ever having  to use phpmyadmin uggg a real pain.  That would be gold if modx could do that from within the manager
Logged

rthrash
Foundation
*
Posts: 10,471



WWW
« Reply #13 on: Apr 11, 2006, 01:55 PM »

bugsmi0 good idea, but belongs in a separate topic.
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.
garryn
Coding Team
*
Posts: 1,252



WWW
« Reply #14 on: Apr 11, 2006, 02:13 PM »

Gary, you really are a God
Well, I'm not one to sing my own praises but I think you have a point Cheesy  Just kidding, glad you like the module!
forget the doc manager
But, all that time and effort ...  Cry Trust me, if you like the template changer, you'll just love the Doc Manager  Grin

Cheers, Garry
Logged

Pages: [1] 2   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!