1. Access an Item

Access system data templates

Version:

You can use the Sitecore.TemplateID class to access system data templates. For example, to access the standard template in the Master database:

Sitecore.Data.Database master = Sitecore.Configuration.Factory.GetDatabase("master");

Sitecore.Data.Items.TemplateItem standard =

master.Templates[Sitecore.TemplateIDs.StandardTemplate];
If you have suggestions for improving this article, let us know!