A Statamic v1 exporter, and companion to Statamic v2's Importer. Could be useful for other reasons too.
_add-ons/exporter
.http://v1-site.com/TRIGGER/exporter/export
which will download a JSON file.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.
_config/global.yaml
will be added to the top level global
set._config/settings.yaml
but don't exist in _app/config/default.settings.yaml
will be
considered ones that you added manually, and will also be added to the global
set._themes/your-theme/theme.yaml
will be added to a theme
global set.