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/