View Source
Class BlockListTemplateExtensions
Inheritance
System.Object
Assembly: Umbraco.Web.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(HtmlHelper, BlockListModel, String)
Declaration
public static IHtmlString GetBlockListHtml(this HtmlHelper html, BlockListModel model, string template = "Default")
Parameters
Type |
Name |
Description |
HtmlHelper |
html |
|
BlockListModel |
model |
|
System.String |
template |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
View Source
GetBlockListHtml(HtmlHelper, IPublishedContent, String)
Declaration
public static IHtmlString GetBlockListHtml(this HtmlHelper html, IPublishedContent contentItem, string propertyAlias)
Parameters
Type |
Name |
Description |
HtmlHelper |
html |
|
IPublishedContent |
contentItem |
|
System.String |
propertyAlias |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
View Source
GetBlockListHtml(HtmlHelper, IPublishedContent, String, String)
Declaration
public static IHtmlString GetBlockListHtml(this HtmlHelper html, IPublishedContent contentItem, string propertyAlias, string template)
Parameters
Type |
Name |
Description |
HtmlHelper |
html |
|
IPublishedContent |
contentItem |
|
System.String |
propertyAlias |
|
System.String |
template |
|
Returns
Type |
Description |
System.Web.IHtmlString |
|
View Source
GetBlockListHtml(HtmlHelper, IPublishedProperty, String)
Declaration
public static IHtmlString GetBlockListHtml(this HtmlHelper html, IPublishedProperty property, string template = "Default")
Parameters
Returns
Type |
Description |
System.Web.IHtmlString |
|