[TYPO3-dev] Problem with Pagerenderer Hook

Kay Strobach typo3 at kay-strobach.de
Thu Dec 6 11:01:45 CET 2012


Hello Guys,

I do use
> $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][]
as Hook to generate CSS files from less and scss files with Variables
set by TS or a Registry in FE and BE (EXT:dyncss [1]).

This works extremly smooth in the backend.
Sadly this just work in the frontend, if the cache is disabled - or on
the first hit. As i remember right this is a known bug in TYPO3 until
6.0 (just have not found the ticket uri).

So what is the best solution to fix this problem?

My Ideas are the use of:

> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['contentPostProc-all'][]
> With and xml parser attached to find and replace the still linked less and scss files
> and replace them with the processed ones?

> Use of Additional Headerdata, which is also a part of the
> pagerenderer and can be broken too. Additionally this will change the
> order of css files

Any additional suggestions?

Regards
Kay

[1] http://forge.typo3.org/attachments/download/22930/dyncss-2012-12-06.zip
-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach




More information about the TYPO3-dev mailing list