Try our conversational search powered by Generative AI!

ChildrenCustomTagName doesn't work in DisplayFor

Found in

EPiServer.CMS.Core 12.20.0

Fixed in

EPiServer.CMS.Core 12.20.2

(Or a related package)

Created

Dec 12, 2023

Updated

Jan 23, 2024

Area

CMS Core

State

Closed, Fixed and tested


Description

Fixed an issue where adjusting the following code in the index.xhtml file (StandardPage) in the alloy template from: 

@Html.PropertyFor(x => x.CurrentPage.MainContentArea, new { CssClass = "row" })

      to: 

 @Html.DisplayFor(x => x.CurrentPage.MainContentArea, new {CssClass = "row",ChildrenCustomTagName = "section"})

did not render the expected "section" element.