[TYPO3-core] RFC: Bug #9275: TypoScript objects CONTENT and RECORDS do not respect localization of table pages

Oliver Hader oliver at typo3.org
Wed Sep 3 09:37:04 CEST 2008


This is a SVN patch request.

Problem:
Imagine someone wants to display the localized title of a page in FE by 
the RECORDS object in TypoScript - example:

temp.pageTitle = RECORDS
temp.pageTitle {
   source = pages_123
   tables = pages
   conf.pages = TEXT
   conf.pages {
     field = title
   }
}

In tslib_cObj there's a call to 
$GLOBALS['TSFE']->sys_page->getRecordOverlay() which won't work for 
pages, since pages have an own table for localization stuff - thus 
getPageOverlay() would be correct for the table 'pages' in the RECORDS 
and CONTENT TS-object. However using getPageOverlay() will only be a 
specific solution for pages - the bug is, that the TCA ctrl property 
'transForeignTable' seems not to be implemented yet.

Solution:
Implement the missing functionality for 
$TCA[<table>]['ctrl']['transForeignTable'] in 
t3lib_pageSelect::getRecordOverlay() to fetch record overlay information 
from a foreign table.

Bugtracker references:
http://bugs.typo3.org/view.php?id=9275

Branches: TYPO3_4-2, Trunk


olly
-- 
Oliver Hader
TYPO3 4.3 Release Manager
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009275_v2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080903/0688be11/attachment.txt 


More information about the TYPO3-team-core mailing list