[TYPO3-core] RFC #14463: Add post initialization hook for tslib_cObj
Ingo Renner
ingo at typo3.org
Mon May 24 18:12:24 CEST 2010
Ernesto Baschny [cron IT] wrote:
Hi Ernesto,
> Could you please share some use-cases for that new hook?
tslib_cObj is the only reliable place to track which records / content
elements get rendered on a TYPO3 page (as long as standard practices are
used at least) as everything goes through cObj and its start() method.
In Solr's Index Queue we're disabling all frontend user access
restrictions and then through this hook determine which access protected
records get rendered: After disabling access restrictions they do get
rendered, while they would not if access restrictions were in place of
course.
Disabling access restrictions is only a temporary thing, for one request
only, triggered by a special header we verify whether it is a real one
coming from the Solr extension itself, involving the encryption key.
After that one request and rendering run of the page we know which user
group restrictions are used on a page and we render the page for each of
the user groups found to actually index these variations.
That's what we do with that hook (currently it's an XCLASS), but being
able to modify things post initialization should be useful for other use
cases, too.
HTH
Ingo
--
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2
More information about the TYPO3-team-core
mailing list