November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Hi,
I think that DisplayOption is set on ContentArea item not on block. This is because you could have different DisplayOptions on the same block in several contet areas.
The code to get display option from content area item:
ContentArea ca; foreach (var item in ca.FilteredItems) { DisplayOption loadDisplayOption = item.LoadDisplayOption(); }
You can get the display option ID from RenderSettings property and then load the display option.
Are you using MVC or Webforms?
Hi
Using Webforms. And using .LoadDisplayOption() worked fine for my problem.
Thanks for the help =)
Hi!
Is there a way to get the current display option for current block in episerver 7.5?
Regards/Crille