Search Results for

    Show / Hide Table of Contents
    View Source

    Class HtmlMacroParameterParser

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Templates
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public sealed class HtmlMacroParameterParser : IHtmlMacroParameterParser

    Constructors

    View Source

    HtmlMacroParameterParser(IMacroService, ILogger<HtmlMacroParameterParser>, ParameterEditorCollection)

    Declaration
    public HtmlMacroParameterParser(IMacroService macroService, ILogger<HtmlMacroParameterParser> logger, ParameterEditorCollection parameterEditors)
    Parameters
    Type Name Description
    IMacroService macroService
    ILogger<HtmlMacroParameterParser> logger
    ParameterEditorCollection parameterEditors

    Methods

    View Source

    FindUmbracoEntityReferencesFromEmbeddedMacros(String)

    Parses out media UDIs from an HTML string based on embedded macro parameter values.

    Declaration
    public IEnumerable<UmbracoEntityReference> FindUmbracoEntityReferencesFromEmbeddedMacros(string text)
    Parameters
    Type Name Description
    System.String text

    HTML string

    Returns
    Type Description
    IEnumerable<UmbracoEntityReference>
    View Source

    FindUmbracoEntityReferencesFromGridControlMacros(IEnumerable<GridValue.GridControl>)

    Parses out media UDIs from Macro Grid Control parameters.

    Declaration
    public IEnumerable<UmbracoEntityReference> FindUmbracoEntityReferencesFromGridControlMacros(IEnumerable<GridValue.GridControl> macroGridControls)
    Parameters
    Type Name Description
    IEnumerable<GridValue.GridControl> macroGridControls
    Returns
    Type Description
    IEnumerable<UmbracoEntityReference>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • HtmlMacroParameterParser(IMacroService, ILogger<HtmlMacroParameterParser>, ParameterEditorCollection)
    • Methods
      • FindUmbracoEntityReferencesFromEmbeddedMacros(String)
      • FindUmbracoEntityReferencesFromGridControlMacros(IEnumerable<GridValue.GridControl>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX