Merge pull request #8844 from umbraco/v8/bugfix/remove-blocklistextensions

V8.7RC: Removing extensions for GetBlockListHtml on IPublishedContent
This commit is contained in:
Claus
2020-09-08 10:46:06 +02:00
committed by GitHub

View File

@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using Umbraco.Core.Models.Blocks;
@@ -35,11 +34,5 @@ namespace Umbraco.Web
return GetBlockListHtml(html, prop?.GetValue() as BlockListModel, template);
}
public static IHtmlString GetBlockListHtml(this IPublishedProperty property, HtmlHelper html, string template = DefaultTemplate) => GetBlockListHtml(html, property?.GetValue() as BlockListModel, template);
public static IHtmlString GetBlockListHtml(this IPublishedContent contentItem, HtmlHelper html, string propertyAlias) => GetBlockListHtml(html, contentItem, propertyAlias, DefaultTemplate);
public static IHtmlString GetBlockListHtml(this IPublishedContent contentItem, HtmlHelper html, string propertyAlias, string template) => GetBlockListHtml(html, contentItem, propertyAlias, template);
}
}