I’m posting this in ’In Development’ because the SQL script I’m posting is not for newbies, and it
is in development. To automate the process of starting a new MODx site, I maintain a little database of the basic data I need for a new MODx site. This includes content, templates, chunks, snippets, template vars, users, roles, and categories. When I start a new MODx site, I export the data and import it using phpMyAdmin. This way, all of my basic templates, chunks, snippets, etc, are all set up and ready to use. Automating these basic processes saves me about 3 hours of work on each new site.
I’m still in the process of refining the script/DB and it’s built around the way I like things, but I’ve had thoughts of maybe turning this into a module (right, like I have the time for that!).
I’d be interested to hear if anyone else does this or does it better, or in a different way.
Attached to the post is a file with data only, and another one of data+structure. I use this with modx 0.9.5, and am not sure if it works with 0.9.6, but it might.
I’ve written more about this on my blog at:
http://www.devtrench.com/auto-site-start-modx-resource-install-script/
Thanks,
James