Search Results for

    Show / Hide Table of Contents
    View Source

    Class TemplateContentParserService

    Provides functionality for parsing template content to extract metadata such as the master template alias.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public class TemplateContentParserService : ITemplateContentParserService

    Constructors

    View Source

    TemplateContentParserService()

    Declaration
    public TemplateContentParserService()

    Methods

    View Source

    MasterTemplateAlias(string?)

    Extracts the master template alias from the view content.

    Declaration
    public string? MasterTemplateAlias(string? viewContent)
    Parameters
    Type Name Description
    string viewContent

    The view content to parse.

    Returns
    Type Description
    string

    The alias of the master template, or null if not found.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX