Search Results for

    Show / Hide Table of Contents
    View Source

    Class BlockListTemplateExtensions

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public static class BlockListTemplateExtensions

    Fields

    View Source

    DefaultFolder

    Declaration
    public const string DefaultFolder = "blocklist/"
    Field Value
    Type Description
    System.String
    View Source

    DefaultTemplate

    Declaration
    public const string DefaultTemplate = "default"
    Field Value
    Type Description
    System.String

    Methods

    View Source

    GetBlockListHtml(IHtmlHelper, IPublishedContent, String)

    Declaration
    public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedContent contentItem
    System.String propertyAlias
    Returns
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent
    View Source

    GetBlockListHtml(IHtmlHelper, IPublishedContent, String, String)

    Declaration
    public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedContent contentItem
    System.String propertyAlias
    System.String template
    Returns
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent
    View Source

    GetBlockListHtml(IHtmlHelper, IPublishedProperty, String)

    Declaration
    public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, IPublishedProperty property, string template = "default")
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedProperty property
    System.String template
    Returns
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent
    View Source

    GetBlockListHtml(IHtmlHelper, Nullable<BlockListModel>, String)

    Declaration
    public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, BlockListModel? model, string template = "default")
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    System.Nullable<BlockListModel> model
    System.String template
    Returns
    Type Description
    Microsoft.AspNetCore.Html.IHtmlContent
    View Source

    GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, String)

    Declaration
    public static async Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedContent contentItem
    System.String propertyAlias
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Html.IHtmlContent>
    View Source

    GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, String, String)

    Declaration
    public static async Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedContent contentItem
    System.String propertyAlias
    System.String template
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Html.IHtmlContent>
    View Source

    GetBlockListHtmlAsync(IHtmlHelper, IPublishedProperty, String)

    Declaration
    public static async Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedProperty property, string template = "default")
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    IPublishedProperty property
    System.String template
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Html.IHtmlContent>
    View Source

    GetBlockListHtmlAsync(IHtmlHelper, Nullable<BlockListModel>, String)

    Declaration
    public static async Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, BlockListModel? model, string template = "default")
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper html
    System.Nullable<BlockListModel> model
    System.String template
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Html.IHtmlContent>
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • DefaultFolder
      • DefaultTemplate
    • Methods
      • GetBlockListHtml(IHtmlHelper, IPublishedContent, String)
      • GetBlockListHtml(IHtmlHelper, IPublishedContent, String, String)
      • GetBlockListHtml(IHtmlHelper, IPublishedProperty, String)
      • GetBlockListHtml(IHtmlHelper, Nullable<BlockListModel>, String)
      • GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, String)
      • GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, String, String)
      • GetBlockListHtmlAsync(IHtmlHelper, IPublishedProperty, String)
      • GetBlockListHtmlAsync(IHtmlHelper, Nullable<BlockListModel>, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX