Return to doc.sitecore.com

Valid for Sitecore 5.1.1 and 5.2
  Template Inheritance
Prev

To illustrate how Standard Template sections are incorporated into other templates and Items, we’ll consider a simple example of multilevel inheritance below.

Standard Template

Contains fields which define how Sitecore should manage an Item:

/upload/sdn5/end user/authoring content/editing and defining templates/template_inheritance1.png 

Low Level Custom Template

Contains two custom sections; inherits from the Standard Template:

/upload/sdn5/end user/authoring content/editing and defining templates/template_inheritance2.jpg 

Custom Template

Contains one section; inherits from the Low Level Custom Template:

/upload/sdn5/end user/authoring content/editing and defining templates/template_inheritance3.png

Now let’s create an Item from the Custom Template:

/upload/sdn5/end user/authoring content/editing and defining templates/template_inheritance4.png

Apart from Section 3 defined in the Custom Template, the resulting item contains Section 1 and Section 2  (as long as Custom Template inherits from Low Level Custom Template) and also all sections defined in the Standard Template.

/upload/sdn5/end user/authoring content/editing and defining templates/template_inheritance5.jpg


Prev