How to Create a Template Without Standard Fields in Sitecore CMS

March 8, 2017

Blog | Development | How to Create a Template Without Standard Fields in Sitecore CMS
How to Create a Template Without Standard Fields in Sitecore CMS

This is the thirty-fifth post in a series about learning how to use and develop for Sitecore CMS; it is the follow-up post to “How to View Raw Values in Sitecore CMS”. In this “How to” post I go over how to create a template without extending the standard template and thereby inheriting the standard fields in Sitecore CMS.

When creating a template, Sitecore will default to extending the “Standard template”, which is located in /sitecore/templates/System/Templates.

If you choose not to extend any template or remove the Standard template from the “Base template” field, Sitecore will still implicitly extend the Standard template, and items created from your custom template will still contain all the standard fields.

As a general rule this is a good thing. Most of the time you really don’t want to lose the standard fields, because they’re helpful in the content editor.

There are some exceptions though. If you want to modify the Standard template to add fields to all items, you’ll need to assign your custom template as a base template of /sitecore/templates/System/Templates/Standard template. If your custom template extends Standard template, you won’t be able to have Standard template extend your custom template because it would create a circular reference.

To make a template that no longer inherits from Standard template, start by creating the new template.

Sitecore 8 showing a new Test template
Sitecore 8 showing a new Test template

View raw values and update the “Base template” field to {00000000-0000-0000-0000-000000000000}.

Sitecore 8 showing the null GUID as a base template
Sitecore 8 showing the null GUID as a base template

Save the changes to the template. A warning about removing base templates should appear.

Sitecore 8 showing a warning dialog about removing base templates
Sitecore 8 showing a warning dialog about removing base templates

Click “OK” and switch back from viewing raw values.

Creating an item from this template, such as __Standard Values will show a warning on the item details that the item has no fields.

Sitecore 8 showing an item with no fields
Sitecore 8 showing an item with no fields

Tim Leverett

Senior Developer
Tags
  • Best Practices
  • Content Editor
  • Content Management
  • Development
  • Sitecore
  • Tutorial
Sitecore Survival Guide Volume 1

If you found this post helpful, there are plenty more where it came from! You'll find the first 10 here.

Download the first 10 posts in our Sitecore how-to series by Developer Tim Leverett!

Recent Work

Check out what else we've been working on