Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    Alias

    Gets the Alias of the File, which is the name without the extension

    Declaration
    string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    IsMasterTemplate

    Returns true if the template is used as a layout for other templates (i.e. it has 'children')

    Declaration
    bool IsMasterTemplate { get; set; }
    Property Value
    Type Description
    bool
    View Source

    MasterTemplateAlias

    returns the master template alias

    Declaration
    string? MasterTemplateAlias { get; }
    Property Value
    Type Description
    string
    View Source

    Name

    Gets the Name of the File including extension

    Declaration
    string? Name { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    SetMasterTemplate(ITemplate?)

    Set the mastertemplate

    Declaration
    [Obsolete("MasterTemplate is now calculated from the content. This will be removed in Umbraco 15.")]
    void SetMasterTemplate(ITemplate? masterTemplate)
    Parameters
    Type Name Description
    ITemplate masterTemplate
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX