Craig100
03/01/2024, 1:57 PM@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem<Column2, LayoutSettings>>
@{
string style = "style=\"";
style += Model.Settings.BackgroundColour is not null ? "background-color: #" + Model.Settings.BackgroundColour + ";" : "";
style += "\"";
}
<div @Html.Raw(style)>
@await Html.GetBlockGridItemAreasHtmlAsync(Model)
</div>
If I comment out the line with Model.Settings.BackgroundColour then the page displays.
Any suggestions would be appreciated.
Thanks.Dean Leigh
03/01/2024, 2:28 PMCraig100
03/01/2024, 2:42 PMCraig100
03/01/2024, 2:45 PMDean Leigh
03/01/2024, 6:27 PM