Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1520 karma points
    Jul 11, 2017 @ 09:09
    Paul de Quant
    0

    Remapping the CSS folder

    Hello,

    Can anyone tell me if it's possible to move the css folder from the root in to a sub-folder and still have the back-office find it.

    We tend to use a theme folder in our website setup and having two folders for CSS is confusing.

    Just wondering if there was a config setting somewhere that I could change the file path of the CSS folder.

    Thanks

    Paul

  • Paul de Quant 403 posts 1520 karma points
    Jul 17, 2017 @ 07:19
    Paul de Quant
    0

    I take it this is not possible then?

  • Andy Cox 31 posts 182 karma points
    Aug 24, 2017 @ 18:42
    Andy Cox
    0

    I'm also wondering if this is possible? Any takers?

    Thanks,

    Andy

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Aug 24, 2017 @ 19:54
    Nicholas Westby
    1

    Based on the source code, it seems like you should be able to set this app setting in your web.config: umbracoCssDirectory

    However, it looks like some of the code may ignore that setting, so beware that it may cause some issues. I'm guessing people don't usually use this setting, so some of the code relating to it may not be particularly polished.

    Here's the relevant code, by the way: https://github.com/umbraco/Umbraco-CMS/blob/9badb35c054ecc91630b69b1b6753c78427cb4a6/src/Umbraco.Core/IO/SystemDirectories.cs#L44

Please Sign in or register to post replies

Write your reply to:

Draft