[TYPO3-dev] add custom CSS to module

Tapio Markula tapio.markula at atwebteam.com
Thu Mar 1 14:03:38 CET 2007


Markus Wagner kirjoitti:
> Hi Stefano!
> 
> stefano cecere wrote:
>> one of them: how can i insert custom CSS in the (framed) page?
> 
> $this->doc->inDocStylesArray[] = '@import url( ... );';
> 
> 
> HTH,
> 
> Teddai

That is *bad* - note that several application may use 'inDocStylesArray'.
If some plugin uses it *before* you plugin the import statement doesn't 
work!
*newer* use @import-statement with 'inDocStylesArray'

Include the content with PHP-function to the array instead!




More information about the TYPO3-dev mailing list