[TYPO3-dev] Reading ts-setup in php
Tonni Aagesen
goes.to at dev.null
Mon Jun 25 16:30:28 CEST 2007
Steffen Kamper wrote:
> require_once(PATH_t3lib.'class.t3lib_tsparser_ext.php');
> require_once(PATH_t3lib.'class.t3lib_page.php');
>
> $template = t3lib_div::makeInstance('t3lib_tsparser_ext'); // Defined global
> here!
> $template->tt_track = 0;
> // Do not log time-performance information
> $template->init();
> $sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
> $rootLine = $sys_page->getRootLine($pid);
> $template->runThroughTemplates($rootLine); // This generates the
> constants/config + hierarchy info for the template.
> $template->generateConfig();//
> $conf = $template->setup['plugin.']['tx_yourext.'];
Cool - thanks, I'm a lot closer now. Am I right in observing that it
does not parse includes like:
<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/typoscript/tx_foobar.ts">
--
Regards
Tonni Aagesen
www.pil.dk & www.quickpay.dk
More information about the TYPO3-dev
mailing list