[TYPO3] CSS from extension managed by core

Christian Lerrahn christian.lerrahn at cerebrum.com.au
Tue Sep 4 06:31:58 CEST 2007


On Thu, 30 Aug 2007 13:52:44 +0300
"Dmitry Dulepov [typo3]" <dmitry at typo3.org> wrote:

> Christian Lerrahn wrote:
> > I'd like to generate some CSS in an extension from templates and
> > then hand it over to the core to take care of it. Is that possible?
> > I realise that I could just write my own temporary file which I then
> > refer to in the header but I would like the core to take care of
> > everything once the CSS is final. How do I do that?
> 
> Easy:
> 
> ----------------------------
> $generatedCss = '
> BODY { }
> H1 { }
> ';
> $GLOBALS['TSFE']->setCSS('tx_yourext_pi1', $generatedCss);
> ----------------------------
> 

Cheers. :)

Christian


More information about the TYPO3-english mailing list