I've made a package that includes a surface controller with models, views and all.
When I make my package I unclude de views, the dll in bin folder, the macro that invokes the controller, and the css that the views use. the css file is located in css folder of dev instllation.
The contents of the packages shows all files except .css that is included inline in package.config.
When I install my package in production the css file included is nowere shown.
How can i published a css file and use it in packaged views?
the css is in css folder in development install.
Then i pack all together, css and views, and the css is not deployed in ~/css of production site, as expected.
Idk if this is the answer...but I’d try putting that file in the appdata folder within your package folder and updating the reference. This could be an angular caching issue maybe?
Package and css
Hello
I've made a package that includes a surface controller with models, views and all. When I make my package I unclude de views, the dll in bin folder, the macro that invokes the controller, and the css that the views use. the css file is located in css folder of dev instllation.
The contents of the packages shows all files except .css that is included inline in package.config.
When I install my package in production the css file included is nowere shown.
How can i published a css file and use it in packaged views?
Regards, Jorge
Whats the reference to your css file from the config look like? Is it using an absolute path or relative to where your package?
Hi Amir
thanks for your reply
in my page i use this
@{ Html.RequiresCss("~/css/multipageforms.min.css"); }
the css is in css folder in development install. Then i pack all together, css and views, and the css is not deployed in ~/css of production site, as expected.
Idk if this is the answer...but I’d try putting that file in the appdata folder within your package folder and updating the reference. This could be an angular caching issue maybe?
ok... i managed to get it to work. put the css in a folder inside app_plugins. Follow site structure
App_plugins
---Forms
------css
------FormABC
---------view1
---------view2
---------form-abc.css
in view1 and view 2 i can include css files using
but for the love of everything living in this planet i cannot use form-abc.css in view1 or view2.
I tryied everything, and I mean everything...
can you help me here?
Regards
Jorge
i stop trying. put css in view layout.
is working on a reply...