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.

Answers


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

Math: I need to normalize some bar graphs

javascript math

I'm generating bar graphs. The range of data generating said graphs is very wide, which means some areas of the graph are always low, and some areas go off the chart.

Equivalent of “IN” that uses AND instead of OR logic?

sql-server tags where sql-match-all

I know I'm breaking some rules here with dynamic SQL but I still need to ask. I've inherited a table that contains a series of tags for each ticket that I need to pull records from.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.