[TYPO3-mvc] Create Dynamic CSS File via Fluid

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Nov 4 19:13:00 CET 2009


Try this in your extension:

$GLOBALS['TSFE']->getPageRenderer()->addCssFile('path/to/file.css');

You should - of course - first create
the file with it's desired content.

Steffen Ritter schrieb:
> Hey folks,
> i have a configurable colorset within my extbase extension.
> 
> Currently im generating a inline style block out of this...
> This is against the validation rules of xhtml. So, is there any 
> possibility to get parts of a template into head, or including it as 
> external file?
> 
> regards
> 
> Steffen


More information about the TYPO3-project-typo3v4mvc mailing list