[TYPO3-dev] Get TS Setup within BE module

Victor Livakovsky v-tyok at mail.ru
Thu Nov 4 12:29:43 CET 2010


Hi

> Anyway its useful in rare cases.
> Try this in BE:
> 
> 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;
> }

Cool. Thanks! I'll add it to my cheat-list :)




More information about the TYPO3-dev mailing list