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
Is there a way to set my Umbraco 13 project in order to see the css/js files from a folder named static, not from wwwroot? Also, in the static there will be some icons.
Hullo there ^^
Umbraco's documentation for Global Settings is probably what you're looking for. In the appsettings you can change the paths to your static files if you need to.
I've already set "UmbracoCssPath": "~/folder" but don't know how to set it in views.
Changing the "UmbracoCssPath": "~/css" in appsettings is how you would change what shows in the Backoffice > Settings > Stylesheets list. I just tested it with a project and it swapped just fine :3
If you do not see a change then you should check you have the correct path to your other stylesheets, or perhaps try a clean + rebuild to make sure it's being built with your changes.
Otherwise, make sure you're adjusting the right appsettings.json version if you've got different ones for prod/dev/etc.
Unless you mean something different by 'Views'? Are you referring to how to hook it up to your cshtml Views? If so, it'd be just using normal HTML external resource linking in your layout template and does not involve appsettings at all.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted