Hi all:
For some reason I’m having trouble linking to my CSS template with a path variable.
Everything works fine when I do this:
<link rel=“stylesheet” href=”{stylesheet=styles/default}”>
But as soon as I change “stylesheet” to “path” the CSS fails to load. The template type for my template is set as “CSS”, as mentioned here: http://ellislab.com/expressionengine/user-guide/templates/globals/stylesheet.html
My reason for wanting to do this is that I want my CSS template to use different icon sets for different users. By using a variable {icon_path} I can load the appropriate icons right from the CSS and don’t have to manually code the CSS into the original .php template (which is what I have been doing).
Any suggestions? Does this have anything to do with the fact that my CSS has curly braces in it - perhaps EE is parsing them as variables? If so, is there any kind of escape character for curly braces? I’m already following each brace with a new line.
Thanks in advance!