LibrarySites.Banner

Sitecore Idiosyncracies: Data Template for Data Template Fields

This blog post attempts to describe the data template for data template field definition items in the Sitecore ASP.NET web Content Management System (CMS) and Experience Platform (XP). For background information, see the second blog post linked in the Resource section at the end of this post.

The data template for data template fields (/sitecore/templates/System/Templates/Template field) defines the properties of data template fields.

Like the data template for data templates, the data template for data template fields does not inherit from the standard template. Instead, its base templates include specific base templates used by the standard template, where those base templates in turn inherit from the null item. Unlike the data template for data templates, the data template for data template fields includes the Workflow base template in its base templates, but excludes the Advanced, Insert Options, Layout, Lifetime, Publishing, Tasks, and Validation base templates.

In the Data section of the data template for standard template fields, fields include:

  • Type (Sitecore.FieldIDs.Type)
  • Title (Sitecore.FieldIDs.Title)
  • Source (Sitecore.FieldIDs.Source)
  • Blob (Sitecore.FieldIDs.Blob)
  • Shared (Sitecore.FieldIDs.Shared)
  • Unversioned (Sitecore.FieldIDs.Unversioned)
  • Default value (Sitecore.FieldIDs.DefaultValue)
  • Validation (Sitecore.FieldIDs.Validation)
  • ValidationText (Sitecore.FieldIDs.ValidationText)
  • Reset blank (Sitecore.FieldIDs.ResetBlank)
  • Exclude from Text Search (Sitecore.FieldIDs.ExcludeFromTextSearch)
  • Page Editor Buttons (N/A)
  • Ignore Dictionary Translations (Sitecore.FieldIDs.IgnoreDictionaryTranslations): This appears to apply in RenderLabel of EditorFormatter, but my Sitecore Rocks query does not return any results from the Core or the Master showing this field property in use.

use core;

select @@path, @#Ignore Dictionary Translations# from //*[@#Ignore Dictionary Translations# != '']

For more information about these field properties, see the section Understanding the Template Field Definition Item in the Sitecore Data Definition Reference linked in the Resources section at the end of this blog post.

The data template for data template fields defines a Validation Rules section that contains four fields used by Sitecore for validation of field values. The data template for data template fields also defines the Search Results section. This section contains the Is Displayed in Search Results (Sitecore.Buckets.Util.Constants.IsDisplayedInSearchResults) field that can affect whether to expose field values in search results.

Standard values for the data template for data template fields include the Ribbon field in the Appearance section. This enables the Template Field tab for data template field definition items.

If you have any additional information about the data template for data template fields, please comment on this blog post.

Resources