Interface ITemplate
Defines a Template File (Masterpage or Mvc View)
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface ITemplate : IFile, IAggregateRoot, IDeletableEntity, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
Alias
Gets the Alias of the File, which is the name without the extension
Declaration
string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsMasterTemplate
Returns true if the template is used as a layout for other templates (i.e. it has 'children')
Declaration
bool IsMasterTemplate { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MasterTemplateAlias
returns the master template alias
Declaration
string MasterTemplateAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets the Name of the File including extension
Declaration
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetTypeOfRenderingEngine()
Returns the RenderingEngine that corresponds to the template file
Declaration
[Obsolete("This is no longer used and will be removed from the codebase in future versions, use the IFileSystem DetermineRenderingEngine method instead")]
RenderingEngine GetTypeOfRenderingEngine()
Returns
Type | Description |
---|---|
RenderingEngine | RenderingEngine |
SetMasterTemplate(ITemplate)
Set the mastertemplate
Declaration
void SetMasterTemplate(ITemplate masterTemplate)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | masterTemplate |