SlideShare a Scribd company logo
Sitecore 8.2
WEB CMS + MMS AUTOMATION
By Manish Puri
History Of
Sitecore
Oct 2017 Sitecore 9
Topics
 Template
 Types of Template
 Template description
 Standard Values
 Tokens
 Unversioned vs. Shared
 Fallback
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
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)
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.
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
__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.
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.
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.
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.
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
Reference
 http://sitecore-
masters.com/en/templates-in-sitecore/
 http://learnsitecore.cmsuniverse.net/Ne
ws/News/2009/06/Welcome.aspx
 http://blog.alpha-
solutions.us/2015/08/using-the-sitecore-
template-standard-values/

More Related Content

PPT
Android ListView and Custom ListView
PPTX
Empowerment Technologies Lecture 10 (Philippines SHS)
PPT
2. html attributes
PPTX
Android styles and themes
PPTX
DOCX
Default convention for entity framework code first
PPTX
Attributes
PPTX
HTML Lists & Llinks
Android ListView and Custom ListView
Empowerment Technologies Lecture 10 (Philippines SHS)
2. html attributes
Android styles and themes
Default convention for entity framework code first
Attributes
HTML Lists & Llinks

What's hot (14)

PDF
Basics and different xml files used in android
PPT
Displaying XML Documents Using CSS and XSL
PPT
Week 12 xml and xsl
PPTX
Web programming xml
PPT
uptu web technology unit 2 Xml2
PPT
Introduction to XML
PPTX
Single page application 04
PPT
Introduction to Zend Framework
PPT
Template
PPTX
Xml ppt
PPT
JSP Custom Tags
Basics and different xml files used in android
Displaying XML Documents Using CSS and XSL
Week 12 xml and xsl
Web programming xml
uptu web technology unit 2 Xml2
Introduction to XML
Single page application 04
Introduction to Zend Framework
Template
Xml ppt
JSP Custom Tags
Ad

Similar to Sitecore Knowledge Transfer 2018 (Template) day-2 (20)

PDF
CTools Style Plugins: Demo & Code Walk-Thru
PPT
RPE - Template formating, style and stylesheet usage
PPTX
Introduction to whats new in css3
PPTX
Drupalcamp Atlanta 2010 Design-to-Theme
PPT
Html & CSS - Best practices 2-hour-workshop
PDF
Session 3 - Object oriented programming with Objective-C (part 1)
PPTX
Developing Lightning Components for Communities.pptx
PPT
Rational Publishing Engine and Rational RequisitePro
PDF
walkmod - JUG talk
DOCX
Informatica cloud Powercenter designer
PPT
Coding standard
DOCX
csharp.docx
PPT
SDP_-_Module_4.ppt
PDF
Super applied in a sitecore migration project
PDF
Elements_Creating_Content_Models.pdf
PDF
.NET Core, ASP.NET Core Course, Session 13
PDF
1. Advanced Web Designing (12th IT) (1).pdf
PPTX
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
ODP
Entity Query API
CTools Style Plugins: Demo & Code Walk-Thru
RPE - Template formating, style and stylesheet usage
Introduction to whats new in css3
Drupalcamp Atlanta 2010 Design-to-Theme
Html & CSS - Best practices 2-hour-workshop
Session 3 - Object oriented programming with Objective-C (part 1)
Developing Lightning Components for Communities.pptx
Rational Publishing Engine and Rational RequisitePro
walkmod - JUG talk
Informatica cloud Powercenter designer
Coding standard
csharp.docx
SDP_-_Module_4.ppt
Super applied in a sitecore migration project
Elements_Creating_Content_Models.pdf
.NET Core, ASP.NET Core Course, Session 13
1. Advanced Web Designing (12th IT) (1).pdf
Typescript design patterns applied to sharepoint framework - Sharepoint Satur...
Entity Query API
Ad

Recently uploaded (20)

PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Trump Administration's workforce development strategy
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
RMMM.pdf make it easy to upload and study
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
STATICS OF THE RIGID BODIES Hibbelers.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Trump Administration's workforce development strategy
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
RMMM.pdf make it easy to upload and study
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Computing-Curriculum for Schools in Ghana
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Weekly quiz Compilation Jan -July 25.pdf
human mycosis Human fungal infections are called human mycosis..pptx
GDM (1) (1).pptx small presentation for students
Anesthesia in Laparoscopic Surgery in India
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Microbial diseases, their pathogenesis and prophylaxis
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Final Presentation General Medicine 03-08-2024.pptx
A systematic review of self-coping strategies used by university students to ...

Sitecore Knowledge Transfer 2018 (Template) day-2

  • 1. Sitecore 8.2 WEB CMS + MMS AUTOMATION By Manish Puri
  • 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