Tags into CSS template

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
stevil

Tags into CSS template

Post by stevil »

Hi there, I was just wondering if anyone knows if it is at all possible to insert tags into the CSS so that it outputs when the page is loaded?????

I am getting desperate to know and am running out of time!!

Thanks in advance!!!

for example in the CSS file:

#example {

      background: url({uploads_url}/images/{steve_pagenumber}.jpg);

}
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Tags into CSS template

Post by Nullig »

I don't believe you can. However, you could use inline styles in your template.


stuff


Nullig
nhaack

Re: Tags into CSS template

Post by nhaack »

There is a way I use for Javascript, you might find it suitable for your needs.

Create a template which only contains your CSS and the tags as want..., create a page with this template (hidden from menu, but active). Now add this page as stylesheet in your head section of your actual template and you should be fine. But keep in mind, that the CMS is now generating two pages per requests (check caching options).

Best
Nils
Post Reply

Return to “Developers Discussion”