A Statamic v1 exporter, and companion to Statamic v2's Importer. Could be useful for other reasons too.
- Install the addon by copying the files into
_add-ons/exporter. - Visit
http://v1-site.com/TRIGGER/exporter/exportwhich will download a JSON file. - Upload the JSON file to your v2 site's importer.
Collections will be created for every folder with a fields.yaml in it. So, make sure that all your entry folders
have them, and that they contain a type: key.
The type should be number, date or alphabetical, depending on the type of entry ordering.
The exporter will take globals from a number of different places and turn them into globals.
- Variables in
_config/global.yamlwill be added to the top levelglobalset. - Variables that exist in
_config/settings.yamlbut don't exist in_app/config/default.settings.yamlwill be considered ones that you added manually, and will also be added to theglobalset. - Variables in
_themes/your-theme/theme.yamlwill be added to athemeglobal set.