Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I want to create a package in umbraco. everything is alright the only problem is if I want to include a stylesheet, specially created for my plugin, I see the error below:
The legacy umbraco.cms.businesslogic.web.StyleSheet API is no longer functional for retrieving stylesheets based on an integer ID. Stylesheets are no longer persisted in database tables. Use the new Umbraco.Core.Services.IFileSystem APIs instead of working with Umbraco stylesheets.
I use umbraco v 7.4.3
How are you trying to add / access the stylesheet can you share an example? What kind of plugin are you making?
Adding the stylesheet using a package.manifest file in your package folder under /App_Plugins/YourPlugin should be enough to have the stylesheet loaded.
Please see https://our.umbraco.org/documentation/Tutorials/Creating-a-Property-Editor/
So if we use the example referenced that would look like this
//you can define multiple editors
/*this must be a unique alias*/
name: "My markdown editor",
/*grouping for "Select editor" dialog*/
group: "Rich Content",
/*the HTML file we will load for the editor*/
//array of files we want to inject into the application on app_start
But since I don't know what kind of plugin you're making and how you're making it you maybe don't need to setup the entire manifest but can perhaps simply just have this in your package.manifest file
So in the /App_Plugins you should place a folder with the name of your plugin and inside it place a package.manifest file with the CSS reference and you should then also place the referenced css file in this folder too.
I hope this makes sense :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted