2.1.0releasedSection Schemas
Reflect section structure (field names, default values, validation rules, tag lists etc.) into page XML.
Clone URLhttps://github.com/symphonists/section_schemas.git
Add as a submodulegit submodule add https://github.com/symphonists/section_schemas.git extensions/section_schemas --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 | 1.8 | 1.8 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 | 2.1.0 |
Readme
Section Schemas
Installation
- Upload the 'section_schemas' folder in this archive to your Symphony 'extensions' folder.
- Enable it by selecting "Section Schemas" from the System > Extensions menu, choose Enable from the with-selected menu, then click Apply.
- Navigate to Blueprints > Data Sources, click Create New and choose Section Schema from the "Source" dropdown
Usage
- Create a schema data source by choosing the section and the fields to include
- Attach the data source to a page
I get weird errors!
Some fields simply are not compatible with this extension, because I use some slightly nefarious procedures to get the data I need. I'm abusing methods in Symphony's core which weren't really meant for this. It works for most fields, but some throw a hissy-fit, so I keep an array of these and ignore them from the schema output:
$_incompatible_publishpanel = array('mediathek', 'subsectionmanager', 'imagecropper', 'readonlyinput', 'author', 'entry_versions', 'status');
If you get errors from other fields, let me know and I'll add them to this array. Alternatively, don't select them when creating the data source.
But if your complex field is throwing errors and you still want it to play nicely with the extension, go ahead and implement an appendFieldSchema
method in your field which returns an XMLElement
representing the schema of your field. Read more in issue #6.
Version history
Symphony 2.3.x to 2.x.x
- Updated compatibility info
Requires Symphony 2.3.x
Symphony 2.0.6 to 2.2.x
Requires Symphony 2.0.6