the custom template is not used at all. What am I doing wrong here?
Some additional background info: I'm working on a site where some of the images should be scaled down depending on screen resolution, while others should just render as normal. The latter case is implemented as described here. For the former case I have added an additional display template "ResponsiveMedia.cshtml", and want to use this template for the applicable MediaReferences by annotating them with the UIHint attribute.
Is there perhaps a better way to achieve what I want?
Hi,
I'm having some trouble using UIHint for MediaReference without loosing the original edit functionality.
If I use
the custom display template is used when rendering, but the edit functionality reverts to the "click here to edit" button.
If I use
the custom template is not used at all. What am I doing wrong here?
Some additional background info:
I'm working on a site where some of the images should be scaled down depending on screen resolution, while others should just render as normal. The latter case is implemented as described here. For the former case I have added an additional display template "ResponsiveMedia.cshtml", and want to use this template for the applicable MediaReferences by annotating them with the UIHint attribute.
Is there perhaps a better way to achieve what I want?