Externall edit LESS files, and see then within the admin CSS section

Mark Handy asked on December 9, 2015 19:28

I'm working out the kinks for a new build. I've add the LESS module and can see the language options when i go to create a CSS file in the admin. I would rather work on the LESS files externally, as i have set mixins to use, and want to use the bootstrap grid framework.

I can see the folder in App_Themes, but if i add a LESS file, i don't see this in the Admin, and any LESS created in the Admin, i don't see in the source code.

I'm not sure what i'm missing at this point.

Cheers.

Recent Answers


Brenden Kehren answered on December 9, 2015 20:36

This is for v9, but should work for v8 as well (maybe with some minor mods) but should get you what your looking for with being able to edit/view the items in the Kentico UI.

https://docs.kentico.com/display/K9/Registering+CSS+preprocessors

1 votesVote for this answer Mark as a Correct answer

Mark Handy answered on December 9, 2015 21:18 (last edited on December 10, 2019 02:30)

i think i know where my confusion comes from. Creating a new CSS in the Portal creates a new folder in App_Themes, but doesn't actually create physical files.

So if i create a few CSS files for my LESS items, including bootstrap, then use the {% CSS[" "]|(identity)GlobalAdministrator%} syntax to import where i need, i think i should be good.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 10, 2015 01:09

Yes, the directory in the App_Themes folder doesn't get created until you access the "Themes" tab in the CSS Stylesheets app. And yes you are correct using the CSS macro.

0 votesVote for this answer Mark as a Correct answer

Yang Wen answered on January 28, 2016 18:38

Why isn't Kentico's LESS support more integrated with the CMS/configurable experience? Seriously? 2016, and RAW CSS is still considered the primary go-to method?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.