ASPX templates
Version 7.x > ASPX templates > Css minification - CMSPages/GetResource View modes: 
User avatar
Member
Member
j.wientjes-itelligence - 1/14/2013 3:15:28 AM
   
Css minification - CMSPages/GetResource
At the moment I'm working on a website which has one masterpage with several "TemplatePage's" on top of it. Now within the CMS I made sure css minification was checked. But when I check the html of my pages it shows that all the css's which are in the masterpage (TemplateMasterPage) do use CMSPages/GetResource, so they get minified. While all the css's in the normal pages who use the masterpage ain't using GetResource.

Is this a bug or am I doing something wrong?

PS. I get the css's in both pages this way:
<link href="~/App_Themes/...." rel="stylesheet" type="text/css" />

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/14/2013 6:09:12 AM
   
RE:Css minification - CMSPages/GetResource
Hello,

Aren't those files excluded from our output filter? Anyway, you can link those files using the GetResource page directly:

<link href="~/CMSPages/GetResource.ashx?stylesheetfile=/App_Themes/..." type="text/css" rel="stylesheet"/> 


Best regards,
Jan Hermann

User avatar
Member
Member
j.wientjes-itelligence - 1/14/2013 6:36:38 AM
   
RE:Css minification - CMSPages/GetResource
Hi Jan,

I don´t really know what mean with "excluded from our output filter" but the solution you brought worked. Weird that I need to specify this in a normal page but it automaticly applies this to the masterpage.


User avatar
Kentico Support
Kentico Support
kentico_janh - 1/15/2013 4:29:57 AM
   
RE:Css minification - CMSPages/GetResource
Hello,

I meant the Site Manager -> Settings -> System -> Output filter section and its properties. Could you please check both global and site settings?

Best regards,
Jan Hermann