HOME TIPS FORUMS DOWNLOADS

smarty variables in css

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2007/12/16 5:03
ianez  Just popping in   Posts: 12
would like to use some custom smarty variables in a stylesheet file, is this a much complicated operation?
I've started crating a php file calling mainfile and header.. it works as a css file but I can't call smarty engine.
Any suggestion?

thanx
Ian
Votes:0 Average:0.00 |
Previous post - Next post | Parent - Children.1 | Posted on 2007/12/16 13:29 | Last modified
tl001  Webmaster   Posts: 282
Not an expert on the working of CSS and Xoops, I believe what you are trying to accomplish is impossible. Smarty variables have to be assigned in an included php file, then they could be called/displayed. CSS file is not created for that purpose.

I could be very wrong, have you checked it on Xoops.org forums? Someone with in-depth knowledge may better answer your question.

--
Tip It and Use It

Votes:0 Average:0.00 |
Previous post - Next post | Parent - Children.1 | Posted on 2007/12/17 4:03
ianez  Just popping in   Posts: 12
if you creat a file called style.php and you give him a content type header for css, well you can make it work anyway as a css, and I'm able to put in some classic xoops php variblaes such as XOOPS_URL or similar.
My question is if it's possible to init the smarty engine in such page, that way I can create/use some custom varibles I've made for language.

Ian
Votes:0 Average:0.00 |
Previous post - Next post | Parent - No child | Posted on 2008/5/9 7:39
ianez  Just popping in   Posts: 12
well anyone found a workaround for this?
thanx

Ian
Votes:0 Average:0.00 |