Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • nickornotto 317 posts 679 karma points
    Apr 28, 2020 @ 20:18
    nickornotto
    0

    umbracoCssPath setting not working

    I added to my web.config:

    <add key="umbracoCssPath" value="~/content/dist/css" />
    

    It's supposed to change the default css path for Umbraco CMS to the one given in the value, according to the documentation: https://our.umbraco.com/documentation/reference/config/webconfig/

    But in backoffice Settings I can still see files that are within default /css folder.

    I have cleaned cookies, rebuilt, re-logged to no effect.

    I have version 7.15.3

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 28, 2020 @ 20:51
    Alex Skrypnyk
    100

    Hi

    From docs - By adding this to appSettings you can specify a new/different folder for storing your CSS-files and still be able to edit them within Umbraco.

    It means that CSS files created in the Umbraco back-office will be created in that folder in the file system.enter image description here

    Thanks,

    Alex

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 28, 2020 @ 20:54
    Alex Skrypnyk
    0

    when you change the folder, Umbraco doesn't remove files from the old folder

  • nickornotto 317 posts 679 karma points
    Apr 29, 2020 @ 11:28
    nickornotto
    0

    Ok, got it.

    However I don't need Umbraco to remove files from the old folder, but I don't want them to show up for editing within the CMS.

    Shall I remove them then in the CMS? But this will remove them in the file system I guess?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 29, 2020 @ 12:39
    Alex Skrypnyk
    0

    Hi Nick,

    Just use any other folder to real CSS files and remove them from Umbraco Backend, also do backup before you do it.

    Thanks,

    Alex

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 29, 2020 @ 19:48
    Alex Skrypnyk
    0

    Why do you want to prevent the CMS from editing CSS files? You can hide the settings section from some users to prevent security issues.

  • nickornotto 317 posts 679 karma points
    Apr 30, 2020 @ 04:13
    nickornotto
    0

    Because the css is bundled and built of sass, not really for editing outside of IDE.

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 30, 2020 @ 14:59
    Alex Skrypnyk
    0

    Ah, it makes total sense to move to another folder. then just move it to another folder and that's it.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies