[TYPO3-core] RFC #5918: Bug: No language overlay with TS select on table pages

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Nov 19 11:26:25 CET 2010


Fabrizio Branca schrieb am 19.11.2010 00:30:

> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=5918
> 
> Branches:
> trunk
> 
> Problem:
> Currently the TypoScript Object CONTENT does not support translations
> when working on pages (as pages have their translations in a separate
> database table).
> 
> Solution:
> If table is "pages" do a $GLOBALS['TSFE']->sys_page->getPageOverlay()
> instead of a $GLOBALS['TSFE']->sys_page->getRecordOverlay()
> 
> Notes:
> This bug has been reported in 2007 and was not fixed until now.

Alternative would be to fix the getRecordOverlay() to be able to work
with tables which are translated on other tables as well. This has been
explicitly left out in the code with this comment:

if (!$TCA[$table]['ctrl']['transOrigPointerTable']) {
  // Will not be able to work with other tables (Just didn't implement
it yet; Requires a scan over all tables [ctrl] part for first FIND the
table that carries localization information for this table (which could
even be more than a single table) and then use that. Could be
implemented, but obviously takes a little more....)

Any candidate? :)

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list