[Typo3] Getting access to plugin variables like plugin.tx_reviews_pi1.someVar in the BE
Ries van Twisk
typo3 at rvt.dds.nl
Mon Sep 19 22:09:43 CEST 2005
Ries van Twisk wrote:
>Hey List,
>
>
>I need to have access to these vars 'plugin.tx_reviews_pi1.someVar' in
>the BE, not in the FE.
>Is that possible, if so how?
>
>
>cheers,
>Ries
>
>
I wrote this function,
function getTSInformation($page) {
require_once(PATH_t3lib.'/class.t3lib_tsparser.php');
require_once(PATH_t3lib.'/class.t3lib_matchcondition.php');
$sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
$rootLine = $sys_page->getRootLine($page);
foreach ($rootLine AS $pageUID => $values) {
$record = t3lib_BEfunc::getRecordRaw('sys_template',
'pid='.$values['uid']);
if (strlen($record['config'])) $tscontent .=
$record['config'];
}
$parserObj = t3lib_div::makeInstance('t3lib_TSparser');
$matchObj = t3lib_div::makeInstance('t3lib_matchcondition');
$tscontent = $parserObj->checkIncludeLines($tscontent);
$parserObj->parse($tscontent,$matchObj);
$TypoScript = $parserObj->setup;
return $TypoScript;
}
Would that sounds correct? Or is there anything I did forget?
Ries
More information about the TYPO3-english
mailing list