6 posts by 4 authors in: Forums > CMS Builder
Last Post: August 17, 2011   (RSS)

We do most of our business with one particular vertical of clients. They almost always have the same data structure required for the content on their websites.

Over the years, we've developed some "best practices" for the CMSB setup process to ensure we plan for all the right fields, image sizes, allowed/disallowed characters, notes and instructions, etc.

Is there a way for me to export the settings of a fully setup CMSB install? I'd like to be able to automagically create all of the sections, fields, and validation criteria, etc in a new install, saving us the setup time (and ensuring we don't forget anything).

Any thoughts or ideas would be appreciated.
Thanks.

Re: [dennisoneil] Reuse/Export a Schema

By zip222 - August 16, 2011

Yes, absolutely. I do this all the time. Just do the following:

1. Locate the schema folder (cmsAdmin/data/schema) on a site that has already been setup and make an offline backup of everything inside of this folder - consider these your "SCHEMA TEMPLATES"

2. When you go to setup a new site, just go through the normal preliminary installation process.

3. Once this is complete, upload all of your SCHEMA TEMPLATES into the schema folder on the new site.

4. Reset your permissions on these files as per the install instructions.

5. login to the CMS on the new site, and click on the Section Editors button. You will immediately see a bunch of notices at the top of the page indicating that the various sections have all been setup in the database.

That's it!

Re: [dennisoneil] Reuse/Export a Schema

By Dave - August 16, 2011

Hi Dennis,

Sure, with the latest version this is pretty easy. It's pretty much the same as doing a backup and restore, you'd just be restoring a default setup with all your best practices pre-configured.

To backup:
- Setup a default CMSB install exactly the way you want it, including sections, data, and private labeling
- Create a backup file under: Admin > General

To restore:
- Upload the /cmsAdmin/ folder to the new site
- Remove /cmsAdmin/data/isInstalled.php
- Run admin.php and fill out install screen
- Select "Restore Backup" instead of "Create Admin User" to restore default data

And that's it. There's a few other tricks for restoring individual sections, but the blanket approach above is the simplest and does everything. Let me know if that works for you or any other questions or "export/import" requirements and I'll try to assist.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [zip222] Reuse/Export a Schema

Wow. That's great news.
I'm now ashamed I didn't look for a solution sooner.

Thanks zip222.

Re: [Dave] Reuse/Export a Schema

That's great. Thanks Dave.