Template Icons

Template Icons

C# Web Control Code

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

Sitecore.Data.Items.TemplateItem template = db.Templates["templatepath"];

template.InnerItem. ItemEditing.BeginEdit();

template.InnerItem.Appearance.Icon = "iconpath";

template.InnerItem. ItemEditing.EndEdit();