Hallo Thomas, Thomas Janke schrieb: > wie greife ich eigentlich in einer Backend-Extension auf mein > TS-Conf-Array zu?
Ich mache das folgendermaßen, um sowohl im BE als auch im FE darauf zugreifen zu können: function init($conf) { ... if ($conf !== null) { $this->conf = $conf; } else { // We need to create our own template setup if we are in the BE // and we aren't currently creating a DirectMail page. if ((TYPO3_MODE == 'BE') && !is_object($GLOBALS['TSFE'])) { $template = t3lib_div::makeInstance('t3lib_TStemplate'); // do not log time-performance information $template->tt_track = 0; $template->init(); // Get the root line $sys_page = t3lib_div::makeInstance('t3lib_pageSelect'); // the selected page in the BE is found // exactly as in t3lib_SCbase::init() $rootline = $sys_page->getRootLine(intval(t3lib_div::_GP('id'))); // This generates the constants/config + hierarchy info for the template. $template->runThroughTemplates($rootline, 0); $template->generateConfig(); $this->conf = $template->setup['plugin.']['tx_'.$this->extKey.'.']; } else { // On the front end, we can use the provided template setup. $this->conf = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_'.$this->extKey.'.']; } } ... } (Diese Funktion ist Teil meiner Library-Extension "oelib".) Gruß, Oli _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.netfielders.de http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german