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.x | 2.1.x | 2.2.x | 2.3.x | 2.4.x | 2.5.x | 2.6.x | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.7.4 | 2.7.5 | 2.7.6 | 2.7.7 | 2.7.8 | 2.7.9 | 2.7.10 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
No | No | 0.5 | No | No | No | No | No | No | No | No | No | No | No | No | No | No | No. 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.
- Version: 0.5
- Date: 3rd February, 2011
- Requirements: Symphony 2.2 or newer, http://github.com/symphonycms/symphony-2/, a browser that supports the FileReader API
- Author: Brendan Abbott, [email protected]
- GitHub Repository: http://github.com/brendo/scaffolds
Installation
- Upload the 'scaffolds' folder (or checkout from git) to your Symphony 'extensions' folder.
- Enable it by selecting the "Scaffolds" on the Extensions page and choose Enable/Install from the with-selected menu, then click Apply.
- 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