I define styles for all different modules in the theme. Each CSS file in the Styles folder in the theme belongs to a certain module. Only theme knows which file is which. I want my view in the module to include a style defined in the theme via Style.Require. As far as only theme knows the exact css file I can only do it indirectly using the name associated with the resource at the level of theme. The problem is that when I use that name in module it cannot be resolved. So is there any way to do this trick in Orchard?
Share
Ok, what worked for me is:
In a view in the module use
In the
ResourceManifestin the theme addImportant! Do not define the style in the
ResourceManifestin the module!