https://github.com/statamic/exporter
Export data from Statamic V1
https://github.com/statamic/exporter
Last synced: 3 months ago
JSON representation
Export data from Statamic V1
- Host: GitHub
- URL: https://github.com/statamic/exporter
- Owner: statamic
- Created: 2016-02-03T16:39:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-12T16:11:21.000Z (over 6 years ago)
- Last Synced: 2025-03-22T04:41:26.723Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 16.6 KB
- Stars: 8
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Statamic Exporter 
A Statamic v1 exporter, and companion to Statamic v2's _Importer_. Could be useful for other reasons too.## Usage
- Install the addon by copying the files into `_add-ons/exporter`.
- Visit `http://v1-site.com/TRIGGER/exporter/export` which will download a JSON file.
- Upload the JSON file to your v2 site's importer.### Collections / Entries
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.
### Globals
The exporter will take globals from a number of different places and turn them into globals.- Variables in `_config/global.yaml` will be added to the top level `global` set.
- Variables that exist in `_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.
- Variables in `_themes/your-theme/theme.yaml` will be added to a `theme` global set.