Closed adeneys closed 7 years ago
You can now specify a __Standard Values item as part of the template. This follows the standard format for items.
- Folder: Tests
ItemPath: /sitecore/client/Applications/SitecoreWorks/content/TemplateStandardValuesTest
Database: master
- Items:
- Template:
Name: TemplateStandardValuesTest
- Section: Fields
- Field: IsActive
Type: Checkbox
Sharing: Shared
- Field: Text
Type: Single-Line Text
Sharing: Unversioned
- TemplateStandardValuesTest: __Standard Values
- Fields:
IsActive: true
- en:
Text: Welcome to Sitecore
- Layout:
- Default: Sample Layout
- main:
- Sample Sublayout:
- centercolumn:
- Sample Inner Sublayout:
- content:
- Sample Rendering:
Best practice for a website build dictates that presentation should be defined on template standard values, and not on each item directly.
I propose allowing presentation to be defined in a template in the same way we use
Layout
in an item definition:Upon build, the layout will be set on the standard values item for the tempate.