[TYPO3-dev] TSFE in BE Module
Stas Kobzar
admin at doodo.info
Thu Jan 31 13:21:58 CET 2008
Hello Ingo,
I've just tried it. This works just great!
Thank you very much! I was looking for it some time.
Going to share this trick in Russian community with reference to you.
Thanks again,
Stas Kobzar
Ingo Renner wrote:
> // get a TS parser instance
> $template = t3lib_div::makeInstance('t3lib_tsparser_ext');
> $template->tt_track = 0;
> $template->init();
>
> $sysPage = t3lib_div::makeInstance('t3lib_pageSelect');
> $rootLine = $sysPage->getRootLine($pageId);
>
> // generate the constants/config + hierarchy info for the template.
> $template->runThroughTemplates($rootLine);
> $template->generateConfig();
>
> return $template->setup;
>
More information about the TYPO3-dev
mailing list