Would it be possible to place the css_injector_X.css-files in a separate folder inside files/?
This to make the files/-folder cleaner and more organized.

Maybe it could be called css_injector? (I am creative today...:P)

Comments

klonos’s picture

Title: Place css_injector_X.css in folders » Custom paths and filenames for rules' css files
Version: 6.x-1.3 » 6.x-1.4

...also custom names for saved files would be great. Filenames should be auto-generated only if user has not provided a name and that auto-generated name should be created based on the rule's title.

klonos’s picture

1. Provide a per rule option (text field) to provide a custom filename instead of the hard-coded template css_injector_#.css (where '#' an incrementing number). There should also be a way for the current files to be renamed if this field is changed through the UI.

Sometimes one might want to manually edit their created .css files. When done through the css_injector UI it's easy to spot them, since they have a custom name/title. If one tries to do this directly from the command line or by using their ftp client, they have to go through each file and see which is for what. Adding comments to the files during creation helps a bit, but still one has to open them one-by-one till they find which one they were after.

2. Global css_injector setting for the default path where rules will be saved.

Some might not like the default hardcoded sites/default/files/css_injector/ location and require to changed it to one that suits them better.

JieXiannn’s picture

Issue summary: View changes

+1, It's a lot faster and easiy/familiar to edit css with a text editor of our choice, but the inability to select a custom name for our css files and sticking with css_injector_#.css inhibits that, and I'm forced to only use the drupal UI to edit my css files