//Change this key to whatever typoscript object you need
$myTSKey = 'plugin.tx_myext_pi1';
//Create new TSParser object
$TSparser = t3lib_div::makeInstance('t3lib_TSparser');
//Load conf with myTSkey's config data
list(,$conf) = $TSparser->getVal($myTSKey, $GLOBALS['TSFE']->tmpl->setup);
Sunday, 4 December 2011
Load any typoscript in an extension
When you write an extension you get passed it's typoscript config (plugin.tx_myext_pi1). However I'm writing a service class that doesn't have access to this passed data so how do you get this information? The TS Parser:
Labels:
config,
extension,
php,
TYPO3,
typoscript
Subscribe to:
Posts (Atom)