[TYPO3-dev] Writing dynamic content to typo3temp/stylesheet_

Popy popy.dev at gmail.com
Wed Mar 9 14:55:26 CET 2011


Why do you want to avoid inline css ?
By doing what you ask, you'll have to download a different css file for each
different page background.
BTW, a single CSS rule will not be very bigger than a <link> tag.

Cordialement,
Pierre Dudoret


2011/3/9 Søren Malling <soren.malling at gmail.com>

> Hi,
>
> I'm working on a project, where the user can choose a background
> image, to be shown in the page layout. I would like to write this into
> the typo3temp/stylesheet_ file, in order to avoid inline css.
>
> Currently, the only way I know of getting content in to the
> stylesheet_* file is through plugin.tx_ext_pi1._CSS_DEFAULT_STYLE.
>
> I've worked my way in to the hook
>
>
> $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess']
>
> My idea is to preg_match(?) the cssFiles and write a new
> typo3temp/stylesheet* file with the current content and my dynamic
> created content.
>
> Is this overkill, and/or is there some other way to solve this issue?
>
> Regards,
>
> Søren Malling
>
> TYPO3 Brugergruppe Danmark: www.typo3danmark.dk
> Twitter: twitter.com/sorenmalling
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
>




More information about the TYPO3-dev mailing list