Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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