Skip to content

1.8.4 - Fixtures rework

Compare
Choose a tag to compare
@GBH GBH released this 10 Jul 03:00
· 1283 commits to master since this release

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.