[TYPO3-dev] get lg_typo3 with sys_language_uid

Tapio Markula tapio.markula at xetpoint.fi
Sun Nov 23 20:17:51 CET 2008


Thomas Allmer kirjoitti:
> 
> Steffen Kamper-3 wrote:
>> get the TS:
>> function loadTS($pageUid) {
>>          $sysPageObj = t3lib_div::makeInstance('t3lib_pageSelect');
>>          $rootLine = $sysPageObj->getRootLine($pageUid);
>>          $TSObj = t3lib_div::makeInstance('t3lib_tsparser_ext');
>>          $TSObj->tt_track = 0;
>>          $TSObj->init();
>>          $TSObj->runThroughTemplates($rootLine);
>>          $TSObj->generateConfig();
>>          return $TSObj->setup;
>> }
>>
> 
> wow this saved my day... :)
> 
> really cool, thx - with this it now works the way I wanted it :)

getting TS config for the languages
config...

yes but still you must use 'default' for English and maybe for Swedish 
and Danish if they are different as language keys in BE




More information about the TYPO3-dev mailing list