How to Compress Your CSS With {cms_stylesheet}
Last Updated on Tuesday, 29 May 2012 12:55 Written by Ken Griffith Tuesday, 5 June 2012 12:00
CMS Made Simple attaches stylesheets to a page template with the {cms_stylesheet} tag. Since CMSMS version 1.10, this tag will automatically concatenate all of the stylesheets for a given media type into one CSS file.
You may not be aware that since version 1.10, you can use SMARTY tags inside of CMS Made Simple stylesheets. With a couple of small tricks, you can use this to compress your stylesheets.
Using [[strip]] Tags
In CMS Made Simple stylesheets, we use [[double braces]] instead of {curly brackets} as the SMARTY delimiter. This saves using a ridiculous number of {literal} tags.
Learn More
Tags: CMS, cmsms, compress, CSS, how to, made, sheet, simple, smarty, strip, style, stylesheet | Posted under CMS Made Simple | No Comments

Recent Comments