Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-27 22:18:46

nvision
New Member
Registered: 2008-01-27
Posts: 2

Dynamic CSS from section

Is there any way to change the content-type to text/css for a section?

Right now I have dynamic css generated from custom fields. I’ve already created the section and have the css generating correctly, aside from the fact the browser can’t read it becasuse it thinks it’s css.

Here’s the output
http://ladellinc.com/?s=dyncss

Last edited by nvision (2008-03-27 22:19:47)

Offline

#2 2008-03-27 23:11:36

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Dynamic CSS from section

Why don’t you try ako_cssParse?

Offline

#3 2008-03-27 23:18:05

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Dynamic CSS from section

Would mg_setheader perhaps help in this case?

On another tack, maybe ako_cssParse would be of interest to you too (this thread as background too).


TXP Builders – finely-crafted code, design and txp

Offline

#4 2008-03-28 08:44:56

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Dynamic CSS from section

You can use TXP tags in the “head” so wouldn’t <txp:if_section> work for you?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB