November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
scope for the display option for the block is tight to that specific block instance while it's rendered (because you might have 2 blocks on the area each with different display options). Here you can read up a bit on the problem bootstrap renderer had - https://github.com/valdisiljuconoks/EPiBootstrapArea/blob/master/src/EPiBootstrapArea/BootstrapAwareContentAreaRenderer.cs#L121
var renderSettings = RouteData.Values["renderSettings"] as Dictionary<string, object>;
if (renderSettings != null && renderSettings.ContainsKey("tag"))
{
var tag = renderSettings["tag"] as string;
}
CMS 11.15.1
s there any way at controller level or view level to get the selected displayoption for a specific block?
I have looked into a custom content area renderer, and while I can grab it at this stage if I try and add it to viewdata or the viewbag by the time it gets to the razor view the viewdata/viewbag has been cleared.
I have also looked into using OnTemplateResolved but at this point I don't think you have access to the selected display option.
Thanks