An extension by Aissac that provides portability to your Radiant CMS project by allowing you to export and import the records in the database and making it easy to manage them with a source control tool like Git or Subversion.
Tested on Radiant 0.7.1, 0.8 and 0.9 RC1.
- All records are exported to individual YAML files;
- A directory is created for each model in the default import/export path which is db/export;
- The individual YAML files are saved with the record ID as their filename.
The Super Export Extension has no dependencies, so all you have to do is install it:
git clone git://github.com/Aissac/radiant-super-export-extension.git vendor/extensions/super_export
To export, use:
rake db:super_export
To import, use:
rake db:super_import
Exporting the Page model looks like this:
db/
export/
pages/
1.yml
2.yml
3.yml
...
- Istvan Hoka (@ihoka)
- Cristi Duma (@cristi_duma)