Create Templates in Sitecore, including data types (field types), insert options, and standard values

1. What is a Template in Sitecore?
A Template defines the structure of content items in Sitecoreβsimilar to a class in programming.
It controls:
- What fields an item has
- What kind of data each field stores
- Default behavior and rules
Example: A βBlog Postβ template might include fields like:
- Title
- Body
- Author
- Publish Date
2. Template Structure (Core Parts)
A Sitecore template is made up of:
- Sections β Logical grouping of fields (e.g., βContentβ, βSEOβ)
- Fields β Individual data elements
- Standard Values β Default values
- Insert Options β What can be created under an item
3. Template Field Types (Data Types)
Field types define what kind of data is stored and how it is edited.
- Common Field Types
- Text-Based Fields




Number & Date Fields



- Number β Numeric values
- Integer β Whole numbers
- Date /Datetime β Calendar-based input
Link & Reference Fields





- General Link β Internal/external links
- Droplink /Droplist β Select one item
- Multilist /Treelist β Select multiple items
- Checklist β Multi-select checkboxes
Media Fields







- Image β Store images from Media Library
- File β PDFs, docs, etc.
Advanced / Special Fields
- Checkbox β True/False
- Name Value List β Key-value pairs
- Rules β Conditional logic
- Password β Encrypted value
4. Insert Options
What are Insert Options?
Insert options control what types of items can be created as children under a specific item.
Example:
If you have a Folder template, you might allow:
- Blog Post
- News Article
- Landing Page
This ensures content structure consistency.
How Insert Options Work






Insert options are configured via:
- __Masters field (standard way)
- Insert Options section in Standard Values
Key Use Cases
- Restrict content authors to valid structures
- Improve editorial workflow
- Maintain clean content hierarchy
5. Standard Values
What are Standard Values?
Standard values define default values andbehavior for all items created from a template.
What You Can Do with Standard Values





- Set default field values
- Define insert options
- Use tokens like:
- $name β Item name
- $date β Current date
- $id β Unique ID
Example
If βAuthorβ field has a standard value:
Admin
Every new item will default to Admin unless changed.
Inheritance via Standard Values
Templates can inherit from other templates, and standard values can cascade.
Quick Summary
| Concept | Purpose |
|---|---|
| Template | Defines structure of content |
| Field Types | Define type of data stored |
| Insert Options | Control allowed child items |
| Standard Values | Provide defaults & behavior |
Pro Tips
- Keep templates modular and reusable
- Use base templates for shared fields
- Avoid overusing complex field types unless needed
- Use standard values for consistency and speed
Happy Coding!
