Page 1 of 1

Including files with themes

Posted: Mon Jun 01, 2009 6:12 pm
by WebStylee
Ok, I love the theme exporting feature of CMSMS and I just learned that it's capable of packaging up any files the theme packager wishes to include with a theme. However, I wanted to see if I could get some input here as to whether it's very bad practice to use such a stylesheet hack to include files with themes.

So then, the CMSMS theme exporter will include within an exported XML theme file, all files referenced in the stylesheet. I recently released my BlandStyleeCMSMS theme using this "feature" to include CSS fixes for IE7 and IE6. Basically, in the stylesheet, I added the following at the end...

Code: Select all

/*CMSMS hack to include extra files with themes */
.fileIncludes
{
	background-image: url(uploads/BlandStyleeCMSMS/style.ie6.css);
	background-image: url(uploads/BlandStyleeCMSMS/style.ie7.css);
}
Upon export, CMSMS packaged those referenced files along with the theme. In the future, I hope to include my license.txt file also, for sake of reference.

Are there any objections to using this tactic to include files in a theme package?

Regards,
DavidM (http://webstylee.com)