View Source
  Class BlockListTemplateExtensions
  
  
  
  
    Inheritance
      System.Object
      
   
  
  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> |  |