Art Vandelay allows you to import and export fields and section and tabs to and from a Craft site.
#What's in version 2?
This is the alpha release of version 2.
In version 2 we upgraded the interface so it is no longer a single page. There are now 3 types of export you can do:
- Export Field Groups - export an entire group of fields
- Export Section - note version 2 automatically exports the fields that belong to a section.
- Export a Tab - You can export a single entry Type tab, the fields that belong to that tab are also exported.
The import now has a couple of steps:
- Paste your export file into the textbox
- You are presented with a report page indicating what the import will do and potential issues. eg. if a field type has changed.
- For tab imports you can select which entry types you want to add the tab to
- Copy the
artvandelay
directory into yourcraft/plugins
directory - Browse to Settings > Plugins in the Craft CP
- Click on the Install button next to Art Vandelay
- Navigate to your plugins in the admin interface and click the 'Art Vandelay' link on the left.
- To import data, paste previously exported JSON into the text field and click Import.
- To export data, select the field groups you would like to export fields from, the sections you would like to export, then hit Export. The exported data will appear in a text field for you to copy.
- Has a hook "registerMigrationService" to add exports with your own data.
public function registerMigrationService()
{
return array(
'amnav' => craft()->artVandelay_amNav
);
}
Make sure you have your latest export stored at ./craft/config/schema.json
.
Then just run to import...
php ./craft/app/etc/console/yiic artvandelay import
Optionally you can use --force to make the import delete any items which are not in the import file. WARNING!! This will also delete any related content.
You can also generate a schema.json with
php ./craft/app/etc/console/yiic artvandelay export
For composer-managed projects, check out craft-console plugin for a CLI runner with composer support.
- 2.0.0a
- Redo interface, add tab exporting / importing
- 1.0.3
- Add CLI support @thoaionline
- 1.0.2
- Include fields in an exported matrix.
- 1.0.1
- Fix error when importing section translations.
- 1.0.0
- Initial release!
- Allow importing and exporting for:
- Assets
- Globals
- Categories
- Tags
- Improve the UI to allow file upload and download.