View Source
Class BlockListTemplateExtensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class BlockListTemplateExtensions
Fields
View Source
DefaultFolder
Declaration
public const string DefaultFolder = "blocklist/"
Field Value
View Source
DefaultTemplate
Declaration
public const string DefaultTemplate = "default"
Field Value
Methods
View Source
GetBlockListHtml(IHtmlHelper, BlockListModel?, string)
Declaration
public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, BlockListModel? model, string template = "default")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockListModel |
model |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockListHtml(IHtmlHelper, IPublishedContent, string)
Declaration
public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
Returns
| Type |
Description |
| 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 |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockListHtml(IHtmlHelper, IPublishedProperty, string)
Declaration
public static IHtmlContent GetBlockListHtml(this IHtmlHelper html, IPublishedProperty property, string template = "default")
Parameters
Returns
| Type |
Description |
| IHtmlContent |
|
View Source
GetBlockListHtmlAsync(IHtmlHelper, BlockListModel?, string)
Declaration
public static Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, BlockListModel? model, string template = "default")
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| BlockListModel |
model |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, string)
Declaration
public static Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockListHtmlAsync(IHtmlHelper, IPublishedContent, string, string)
Declaration
public static Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
Parameters
| Type |
Name |
Description |
| IHtmlHelper |
html |
|
| IPublishedContent |
contentItem |
|
| string |
propertyAlias |
|
| string |
template |
|
Returns
| Type |
Description |
| Task<IHtmlContent> |
|
View Source
GetBlockListHtmlAsync(IHtmlHelper, IPublishedProperty, string)
Declaration
public static Task<IHtmlContent> GetBlockListHtmlAsync(this IHtmlHelper html, IPublishedProperty property, string template = "default")
Parameters
Returns
| Type |
Description |
| Task<IHtmlContent> |
|