I am using EE v2.4.0. I have a CSS type template file that I want to use either snippets or User Defined global variables in. I can get it to parse “global variables” just not User Defined global variables” or snippets for that matter.
Template file (type CSS):
div.one{background:url({theme_img_path}/bg.jpg) 0 0 repeat-x;}
div.two{background:url({site_url}/bg.jpg) 0 0 repeat-x;}
User Defined global variable or snippet:
{theme_img_path} /themes/red/
I would expect my template to parse like this:
div.one{background:url(/themes/red/bg.jpg) 0 0 repeat-x;}
div.two{background:url(http:www.domain.com/bg.jpg) 0 0 repeat-x;}
but it does this:
div.one{background:url({theme_img_path}/bg.jpg) 0 0 repeat-x;}
div.two{background:url(http:www.domain.com/bg.jpg) 0 0 repeat-x;}
I need this ability so that way I can change my img directory for my themes with on variable edit
any help would be appreciated….