I made this PPT for the user who want to learn about Sitecore.
This PPT covered Sitecore Template material like, Template, types of template, History of sitecore, standard values, tokens, versioning and sharing of items etc.
3. Topics
Template
Types of Template
Template description
Standard Values
Tokens
Unversioned vs. Shared
Fallback
4. Sitecore
Template
Everything in Sitecore is an item. The
same is true for templates. A template
in Sitecore is an item, which defines
the structure and behavior of other
items. Every item in Sitecore is an
instance of some template.
A template may also define the
sections and fields into which it
breaks down into and fulfills the
content.
Path: /sitecore/templates
5. Basic Types of Templates
Three basic types of templates can be defined in Content Editor/Template
Editor.
1. Data Template
2. Branch Template
3. Command Template
4. Inheritace & Standard Template
( It's known default template.)
* Parameter Template (Rendering Parameters)
6. Templates
Data Template
Branch templates
Command templates
• The basic template type. It can contain fields and can be instanced by editors
using insert page.
• The branch structure of templates. It allows you to define the entire branch of
templates so by creating an instance of a branch template the whole item structure
appears without the user having to create them one by one.
• It basically only deals with a command, which is evoked when creating an instance
template. It is used for the automatic creation of items with business logic.
7. Inheritance
Templates can inherit from one or more other
templates. Thanks to inheritance, we can define
abstract templates commonly to more data
templates.
Standard template
Standard template is a basic template, which Sitecore
provides for its function. This template does not
contain any fields, but it inherits from several other
templates thanks to which we are able to define the
display name, layout details, publishing restrictions
and workflow, etc. on the items. All the fields
inherited into standard template begin with__.
Path: /sitecore/templates/System/Templates/Standard template
8. __Standard Values
Standard values are a way of
having default or fallback values for
fields in Sitecore, meaning that when
items are created, you can specify a
field value that should be used
by default.
9. Tokens By default there are the following tokens available in
Sitecore:
$name: Is replaced with the name of the created item
$parentname: Is replaced with the name of the parent
to the created item
$date: Is replaced with the current date
$time: Is replaced with the current time
$now: Is replaced with current date and time
$id: Is replaced with the id of the created item
$parentid: Is replaced with the id of the parent to the
created item.
10. Unversioned vs. Shared
A field in a template can be defined as Unversioned or Shared. As is
already clear from the title, the Unversioned field has the same value
across all the versions within the language. The Shared field always has
one valid value for all versions in all languages.
11. Fallback
The fields in the template can have a defined fallback. Fallback is a
mechanism, which ensure the inserting the value of a field from another
version or from another language, if it is empty.
The fallback hierarchy of individual languages is defined in
/sitecore/system/Languages.
12. Recommendations when Creating
Templates
Follow convention. Sitecore has prepared a document of recommended
principles when designing and implementing Sitecore solutions,
called Sitecore Helix.
Project : Habitat