MediaPicker field admin alternate

Topics: Writing themes
Sep 18, 2012 at 9:55 AM

I added a MediaPicker field 'Image' on a Content type 'Promotion'.

I made an alternate (Fields.MediaPicker-Promotion-Image.cshtml) in my theme to display a <img />

I want to render it the same way in admin.
What name do I have to use for the alternate view in admin?

I tried many names but none works : Fields.MediaPicker.cshtml, Fields.MediaPicker.SummaryAdmin.cshtml, Fields.MediaPicker-SummaryAdmin.cshtml , admin/Fields.MediaPicker.cshtml

I also tried to hide it using, but it didn't work either :
<Match ContentType="Promotion">
<Match DisplayType="SummaryAdmin">  
<Place Fields_MediaPicker="-"/>   

Sep 18, 2012 at 3:56 PM

Your theme will have no effect on the admin, unless it's an admin theme.

Sep 18, 2012 at 4:32 PM

OK, so we should may be distinguish the front and the admin creating an _SummaryAdmin shape in the filed driver, as it is done in other modules like Orchard.Blogs.

Sep 18, 2012 at 5:01 PM

I agree.