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

Søren Malling soren.malling at gmail.com
Wed Mar 9 14:58:53 CET 2011


Hi Pierre

> By doing what you ask, you'll have to download a different css file for each
> different page background.

Good point! I haven't thought about that! (Note, this is a multiple
domain setup, so it would have made it all much worse!)

I might look at the inline css solution instead.

Thanks for your eye opener!

Case closed! :-)

Regards,

Søren Malling

TYPO3 Brugergruppe Danmark: www.typo3danmark.dk
Twitter: twitter.com/sorenmalling



On Wed, Mar 9, 2011 at 2:55 PM, Popy <popy.dev at gmail.com> wrote:
> 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