1.8.4 - Fixtures rework
CMS Fixtures import/export functionality is completely rewritten. Notable (and potentially breaking) changes:
- Page attributes are stored in a
attributes.yml
file instead of_{page_slug}.yml
- Same applies to layouts and snippets.
- Page fixtures properly assign
target_page
attribute - It's possible to define categories for pages and snippets in the
attributes.yml
- Categories can be imported/exported. Even the ones that are not currently used.
- Files can be imported/exported as well.
- Rake task will 'force' import everything. Meaning it's not going to be checking for freshness of the data.
- Files require to have unique filenames for a given Site.
See example fixture files for structure reference. Run rails g comfy:cms
to update them.