I'm guessing you are using the "AlloyContentAreaRenderer". This override "GetContentAreaItemCssClass".
Alloy version:
protected override string GetContentAreaItemCssClass(HtmlHelper htmlHelper, ContentAreaItem contentAreaItem) { var tag = GetContentAreaItemTemplateTag(htmlHelper, contentAreaItem); return string.Format("block {0} {1} {2}", GetTypeSpecificCssClasses(contentAreaItem, ContentRepository), GetCssClassForTag(tag), tag); }
Base version:
protected virtual string GetContentAreaItemCssClass(HtmlHelper htmlHelper, ContentAreaItem contentAreaItem) { return htmlHelper.ViewContext.ViewData["childrencssclass"] as string; }
As you can see, the alloy version does not use the childrencssclass. You can add it though, like so (not tested):
return string.Format("block {0} {1} {2} {3}", GetTypeSpecificCssClasses(contentAreaItem, ContentRepository), GetCssClassForTag(tag), tag, htmlHelper.ViewContext.ViewData["childrencssclass"] as string);
Hi
I'm just wondering if there is a reason why the value I'm setting in ChildrenCssClass isn't being rendered. We're using version 7.10
@Html.PropertyFor(m => m.CurrentPage.ButtonArea, new { CssClass = "row buttons", ChildrenCustomTagName = "div", ChildrenCssClass = "small-12 medium-6 xlarge-3 columns" })
Rather than seeing this:
Apply
I see this
Apply
Cheers
Jonathan.