Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Using .less files View modes: 
User avatar
Certified Developer 10
Certified Developer 10
varinder-kudosweb - 1/23/2013 10:49:36 PM
   
Using .less files
Hello,

Is there anyway i can go around using .less files in kentico stylesheet editor

Cheers
Varinder

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 2/4/2013 9:51:31 AM
   
RE:Using .less files
Hello,

We don't have any larger experience with using .less within Kentico CMS, however as Kentico CMS is a standard ASP.NET application, there should be no hard limitation.
You need to register another HTTP handler, which is generally, IIS/.NET thing.
Have you tried it already with some results (even errors or so)?

As for using it in our CSS editor, it may require some customizations... What exactly do you want to achieve, some kind of automatic support (Intellisense-like) inside our CSS editor?

Thank you in advance for information.

Regards,
Zdenek

User avatar
Member
Member
krisblack - 2/21/2013 3:08:17 PM
   
RE:Using .less files
I'm building a template for Kentico using Twitter Bootstrap. Twitter Bootstrap can be extended to use LESS. It would be great if LESS compiling was built into Kentico and could be turned on and off per site.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 2/28/2013 8:58:20 AM
   
RE:Using .less files
Hi,

Thanks for the info. I will forward your feedback to our developers to consider implementing it in future versions.

Regards,
Zdenek

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/2/2013 9:57:04 AM
   
RE:Using .less files
Hi,

Small update - the support to compile .less should be added in the next version of Kentico CMS (8.0).

Cheers,
Zdenek

User avatar
Certified Developer 13
Certified Developer 13
kentico-jx2tech - 3/2/2013 10:08:00 AM
   
RE:Using .less files
Please add Sass/Compass support to the wishlist too.

User avatar
Certified Developer v7
Certified  Developer v7
dchaffin-hgo - 11/6/2013 8:01:08 PM
   
RE:Using .less files
Oh cool ... this totally needs to happen!

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 2/26/2013 11:48:44 AM
   
RE:Using .less files
@varinder-kudosweb how did you go about getting them to work in your Kentico site? I attempted to add the MIME file type (text/css and text/less) with no success. Any other suggestions?

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 3/2/2013 10:05:20 AM
   
RE:Using .less files
It should be text/css... have you used dot in the extension?
Quoting a "solution" marked stackoverflow.com post:

The extension is .less and the MIME Type is text/css (by – mattruma Nov 7 '11 at 21:42)
...
another post suggests:
"When using Asp.Net you can add the mime type in your web.config:"
<system.webServer>
<staticContent>
<mimeMap fileExtension=".less" mimeType="text/css" />
</staticContent >
</system.webServer>

You can also try to exclude the path with .less in the CMS (URL settings).

Regards,
Zdenek

User avatar
Certified Developer v7
Certified  Developer v7
dchaffin-hgo - 12/6/2013 10:16:24 AM
   
RE:Using .less files
@FroggEye ... Sorry this is off-topic, but I couldn't help notice your hat. Go Vols! :-)