[TYPO3-dev] get lg_typo3 with sys_language_uid

Thomas Allmer at at delusionworld.com
Sun Nov 23 19:33:18 CET 2008



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 :)
-- 
View this message in context: http://www.nabble.com/get-lg_typo3-with-sys_language_uid-tp20634053p20649234.html
Sent from the TYPO3 Dev mailing list archive at Nabble.com.





More information about the TYPO3-dev mailing list