I have noticed a small issue for partial views in edit mode. If I in on-page-edit mode drag and drop a pdf file into a content area, I get an error message: "Generic media cannot be displayed". If I click on the item in the content area, so the window that lists the items appears, it looks ok.
Everything is also ok if I go to preview or live mode. How can I render the content area correctly?
The content area is rendered with a partial view, like this:
@foreach (var item in Model.CurrentPage.RightContentArea.Items)
{
var contentItem = contentLoader.Get(item.ContentLink);
@Html.Partial("/Views/Partials/DefaultPageRightContent/index.cshtml", contentItem);
}
Hi!
I have noticed a small issue for partial views in edit mode. If I in on-page-edit mode drag and drop a pdf file into a content area, I get an error message: "Generic media cannot be displayed". If I click on the item in the content area, so the window that lists the items appears, it looks ok.
Everything is also ok if I go to preview or live mode. How can I render the content area correctly?
The content area is rendered with a partial view, like this: