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:
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];