diff --git a/src/Umbraco.Web.Common/Extensions/BlockGridTemplateExtensions.cs b/src/Umbraco.Web.Common/Extensions/BlockGridTemplateExtensions.cs
index c8afbf0e68..ee0375da4f 100644
--- a/src/Umbraco.Web.Common/Extensions/BlockGridTemplateExtensions.cs
+++ b/src/Umbraco.Web.Common/Extensions/BlockGridTemplateExtensions.cs
@@ -17,6 +17,19 @@ public static class BlockGridTemplateExtensions
#region Async
+ ///
+ /// Renders a block grid model into a grid layout
+ ///
+ ///
+ /// By default this method uses a set of built-in partial views for rendering the blocks and areas in the grid model.
+ /// These partial views are embedded in the static assets (Umbraco.Cms.StaticAssets), so they won't show up in the
+ /// Views folder on your local disk.
+ ///
+ /// If you need to tweak the grid rendering output, you can copy the partial views from GitHub to your local disk.
+ /// The partial views are found in "/src/Umbraco.Cms.StaticAssets/Views/Partials/blockgrid/" on GitHub and should
+ /// be copied to "Views/Partials/BlockGrid/" on your local disk.
+ ///
+ ///
public static async Task GetBlockGridHtmlAsync(this IHtmlHelper html, BlockGridModel? model, string template = DefaultTemplate)
{
if (model?.Count == 0)
@@ -27,9 +40,11 @@ public static class BlockGridTemplateExtensions
return await html.PartialAsync(DefaultFolderTemplate(template), model);
}
+ ///
public static async Task GetBlockGridHtmlAsync(this IHtmlHelper html, IPublishedProperty property, string template = DefaultTemplate)
=> await GetBlockGridHtmlAsync(html, property.GetValue() as BlockGridModel, template);
+ ///
public static async Task GetBlockGridHtmlAsync(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
=> await GetBlockGridHtmlAsync(html, contentItem, propertyAlias, DefaultTemplate);
@@ -49,6 +64,7 @@ public static class BlockGridTemplateExtensions
#region Sync
+ ///
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, BlockGridModel? model, string template = DefaultTemplate)
{
if (model?.Count == 0)
@@ -59,9 +75,11 @@ public static class BlockGridTemplateExtensions
return html.Partial(DefaultFolderTemplate(template), model);
}
+ ///
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, IPublishedProperty property, string template = DefaultTemplate)
=> GetBlockGridHtml(html, property.GetValue() as BlockGridModel, template);
+ ///
public static IHtmlContent GetBlockGridHtml(this IHtmlHelper html, IPublishedContent contentItem, string propertyAlias)
=> GetBlockGridHtml(html, contentItem, propertyAlias, DefaultTemplate);