[Typo3-dev] Get Setup from Templaterecords in Backend Modul
Daniel Pötzinger
poetzinger at depag.de
Mon Mar 22 14:00:29 CET 2004
Hello Again
At first:
Why
If you want to get Setup for Extension from the Templaterecords in the
Pagetree in Backendmodules you can use this:
//Try to load basepath from Template:
$tmpl = t3lib_div::makeInstance("t3lib_tsparser_ext");
$tmpl->tt_track = 0; // Do not log time-performance information
$tmpl->init();
// Gets the rootLine
$sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
$rootLine = $sys_page->getRootLine($this->id);
$tmpl->runThroughTemplates($rootLine,0); // This generates the
constants/config + hierarchy info for the template.
$tmpl->generateConfig(); file://Generate
// Example: debug($tmpl->setup['plugin.']['tx_danpdocumentdirs_pi2.']);
Did you have a better way to geht these values please let me know.
More information about the TYPO3-dev
mailing list