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

Need Your Help

protocol buffers : no notation for fixed size buffers?

c++ protocol-buffers file-format

Since I am not getting an answer on this question I gotta prototype and check myself, as my dataset headers need to be fixed size, I need fixed size strings. So, is it possible to specify fixed size

An async interpreter for Lua to solve a multithreaded approach?

c++ c multithreading asynchronous lua

My general idea is that a single-threaded application ( the Lua interpreter ) will always deteriorate the performance of a multi-threaded application that depends on it ( a generic C++ application ...