AI OnAI Off
Try this:
@{
var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
if (page != null && page.ContentArea != null && page.ContentArea.Items.Any())
{
foreach (var contentItem in page.ContentArea.Items)
{
var item = contentLoader.Get<YOUR_CONTENT_TYPE>(contentItem.ContentLink);
// output necessary properties from content instance
}
}
}
Hi,
I'm using EPiServer 7.5 MVC. I have a view for my page with a content area. I need to get the datas of block(which comes inside content area) on my page(view). Is it possible?