Interface ITemplate
Defines a Template File (Mvc View)
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface ITemplate : IFile, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceAlias
Gets the Alias of the File, which is the name without the extension
Declaration
string Alias { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsLayoutTemplate
Returns true if the template is used as a layout for other templates (i.e. it has 'children')
Declaration
bool IsLayoutTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMasterTemplate
Returns true if the template is used as a layout for other templates (i.e. it has 'children')
Declaration
[Obsolete("Use IsLayoutTemplate instead. Scheduled for removal in Umbraco 20.")]
bool IsMasterTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LayoutTemplateAlias
Returns the layout template alias (the parent template this template inherits from).
Declaration
string? LayoutTemplateAlias { get; }
Property Value
| Type | Description |
|---|---|
| string |
MasterTemplateAlias
Returns the layout template alias (the parent template this template inherits from).
Declaration
[Obsolete("Use LayoutTemplateAlias instead. Scheduled for removal in Umbraco 20.")]
string? MasterTemplateAlias { get; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets the Name of the File including extension
Declaration
string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |