0.5releasedScaffolds

A Symphony extension that allows a developer to quickly create Sections using JSON

Clone URLhttps://github.com/brendo/scaffolds.git

Add as a submodulegit submodule add https://github.com/brendo/scaffolds.git extensions/scaffolds --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNo0.5NoNoNoNoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Scaffolds

Scaffolds allows you to quickly create Sections from a file. Section definitions can be exported and then imported into other Symphony installations using JSON. Definitions can be saved and reused on other Symphony projects to save you time recreating those common sections.

Installation

  1. Upload the 'scaffolds' folder (or checkout from git) to your Symphony 'extensions' folder.
  2. Enable it by selecting the "Scaffolds" on the Extensions page and choose Enable/Install from the with-selected menu, then click Apply.
  3. You when creating, or editing, Sections, you will now be able to Import a definition. When a Section has been saved, you will also be able to Export it for reuse

For further information, please refer to the wiki.

Notes

  • This extension makes use of the FileReader API to parse the files without actually uploading them a destination. At the time of release, this is supported by Firefox 3.6+, Chrome 7+ and IE10+. A Safari nightly also has support for the FileReader API. Check the latest support at caniuse.com
  • The only valid file that can be parsed at the moment is JSON, with the file extension of .json.
  • Checkbox values accept 'yes' and 'no' for 'checked' or 'unchecked', just like Symphony.

Credits

Thanks to @czheng for the initial idea, at least for the name, some many moons ago.

Version history

Requires Symphony 2.2

  • Add support for exporting/importing the Section essentials (name, navigation group, backend visibility). Definition files now have a slightly different output format (old formats still supported). Implements #4 & #5
  • Fixed exporting of some Select values, #2
  • Exported definitions are now pretty printed
  • Small Javascript cleanup

Requires Symphony 2.2