Try our conversational search powered by Generative AI!

Rendering of partial views in edit mode



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);
Nov 10, 2016 12:54

Hello Torunn

I noticed this and added the functionality to Alloy Demo kit. You can see the commit here:


Nov 10, 2016 14:31
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.