Umbraco-cms: Ability to create folder under stylesheets

Created on 19 Jan 2019  路  12Comments  路  Source: umbraco/Umbraco-CMS

There changes made in v8 under stylesheets are really cool and I noticed it now also are able to show subfolders created on file system.

image

However one feature I think is missing is the option to create a folder under stylesheets from backoffice, just like you can under scripts folder.

image

image

communitpr releas8.0.0 typfeature

Most helpful comment

All 12 comments

Furthermore I am not sure if rich text styles works if created in subfolders otherwise the right-click action should maybe only be available from root node?

@bjarnef pardon my ignorance here... but why would you want folders and even subfolders?

@kjac if you want to structure css for same reason that you might want to organize javascripts files into folders. E.g. you could have some css files from external libs you want to organize into folder. We use gulp to compile less/sass and javascript + build to a dist folders, but newbies might just use backoffice to create stylesheets and javascript from backoffice.

Furthermore it is to ensure consistency, so when you can create folders under scripts, why not under stylesheets?

If I remember correct it is also possible from backoffice to rename folders in scripts folders, but I am not sure if it is possible to rename folders under stylesheets (I haven't checked).

@bjarnef gotcha. I guess I just figured the stylesheets tree was largely unused for anything but adding styles to the RTE.

V7 doesn't have folders in the stylesheets tree. I have no idea if there has ever been a request for them. @nul800sebastiaan might be able to answer that part. If not... then maybe we shouldn't do this until it's requested for a concrete need?

@kjac what I always have loved about Umbraco is its flexibility and it doesn't limit the developer. Furthermore it is great for both newbies and experts. When I learned about Umbraco ~10 years ago I liked I could create the website from backoffice without opening Visual Studio or other code editors.
One thing I was missing though was the ability to structure stylesheets into folders. Previously I think og you structured CSS files into folders, it only listed CSS files on root level in backoffice. But for javascript files it also listed files in subfolders in backoffice. Later it was also possible to create folders under scripts from backoffice. Furthermore CSS files in subfolders are loaded in backoffice at least in v8. However I still feel we need to be able to create subfolders under stylesheets from backoffice - both for consistency and not limiting the developer to put all css files at root level.

Off topic it would also be great if developers could manage editors from backoffice similar to LeBlender (maybe a light/basic version of something like LeBlender). At the moment developers have to open a code editor to mangage grid editors which is basic stuff og many Umbraco websites nowadays with "The Grid". Might be a task for Umbraco v8.1?
Mostly thinking on newbies here.

Well as you mention it's already there for scripts, so adding it for stylesheets shouldn't be too much of a hurdle really. I think it's something HQ should weigh in on before we start hacking though...

I think it's a great idea, however we don't want to add any more legacy code to v7 (the create dialog for stylesheets in v7 is still webforms) so it would have to go in v8 instead. 馃憤

@nul800sebastiaan it's fine with me that it only is available in v8, where the stylesheets have got an UX overhaul anyway 馃榿

Cool. I can have a look at it one of these days 馃槃

PR in #4170

Was this page helpful?
0 / 5 - 0 ratings