Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Rendering of partial views in edit mode

Vote:
 

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: 

@foreach (var item in Model.CurrentPage.RightContentArea.Items)
                            {
                                var contentItem = contentLoader.Get(item.ContentLink);
                                @Html.Partial("/Views/Partials/DefaultPageRightContent/index.cshtml", contentItem);
                            }
#171548
Nov 10, 2016 12:54
Vote:
 

Hello Torunn

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

https://github.com/episerver/AlloyDemoKit/commit/f0593c876c01eb03173909ffcf28cccdaf020037

David

#171552
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.