How to use theme for widgets images(override images in theme) in Orchard CMS?
I have own module with some icons (Modules\MyModule\Content\Images\flag.png).
Its posible to use some theme with override icons of this module/widget? Something like (Themes\MyTheme\Content\MyModule\Images\flag.png)
How to reference this on views?
Thanks for some hints.
You could do some kind of wrapper shape for your icons. Something like this:
<img src="@Model.Path" alt="@Model.Alt">
And then, from your view call it e.g.
@Display.IconWrapper(Path="SomePath",Alt="SomeAlt") //The filename should be IconWrapper.cshtml