[TYPO3-templavoila] How to access a translated page title in extension?

Dmitry Dulepov 9f4eetb02 at sneakemail.com
Fri Apr 20 13:02:35 CEST 2007


Anders Tillbeck wrote:
> After using the TemplaVoila to translate at site to multible languages I 
> have now a small problem. I have made an extension that can list page 
> titles using these fields:
> 
> $details = $GLOBALS['TYPO3_DB']->sql_fetch_assoc( $res_page );
> $details['title'];
> 
> But using it on a page with multible languages made using TemplaVoila my 
> extension only selects the "real" page title and not the tranlated page 
> title for any secondary language.
> 
> How can I change the above TS to get the true translated page title 
> instead of the default page title?

This is not depended on templavoila. You need to make this call:

$GLOBALS['TSFE']->sys_page->getRecordOverlay('pages', $details, $curLang);

where $curLang is language ID (value of "L").

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-project-templavoila mailing list