This project is read-only.

How to change default values in Media-Image.Thumbnail.cshtml

Topics: Customizing Orchard, Writing modules, Writing themes
Nov 13, 2013 at 11:16 PM
It is only called in admin mode, so no way to use a template in my theme ?
Nov 13, 2013 at 11:25 PM
Ok I get it duplicating in my own module .... somehow strange logic.
Nov 13, 2013 at 11:51 PM
Can you explain what exactly you mean? What are you trying to do and how does it not work?
Nov 14, 2013 at 6:47 AM
I want to change the default transformation (resize 200x200 crop middle center) applied by media library on images in thumbnail display type.
Nov 16, 2013 at 7:22 AM
Why? Short of overriding the templates from your own module, I don't see how this could be done (and I can see even less why you'd want to do that).
Nov 16, 2013 at 8:07 AM
Edited Nov 16, 2013 at 8:23 AM
So why does it work ?
I simply duplicated the template in the view folder of my module, changed the parameters for resize et voila...
Nov 16, 2013 at 8:09 AM
To complete my last post, I changed it because this module uses very wide images and 200x200 was not adapted to overview when listing content.
Nov 17, 2013 at 5:39 AM
Which is exactly the solution I suggested...
Nov 17, 2013 at 9:43 AM