I am working on a module for Orchard, and I just want to know how to include a css file.
I have done the following with no result:
Added a folder "Styles" to the root of my module and included a stylesheet and a Web.config file like in this question.
And I have seen this but that's not what I am looking for.
EDIT:
Ok, solution:
When I started working on Orchard I created a new module by just creating a new project in Orchard.Web/Modules
folder, but as I read here, my Views/Web.config
file has to include some orchard base things what mine didn't because I did not create the module using codegen. I fixed it now by replacing my Web.config
file for a Web.config
file from another Orchard module, now it works.
Next time I will use codegen to create a new module.
Thanks to endorphin for helping me!
Style.Include()
? – Witherspoon