[TYPO3-dev] parsing TSconfig in BE-module?

bernd wilke t3ng at bernd-wilke.net
Mon Mar 3 15:14:52 CET 2014


Am 03.03.14 14:31, schrieb Philipp Gampe:
> Hi bernd,
>
> bernd wilke wrote:
>
>> \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($this->id);
>
> What is wrong with that one?

As I wrote: it returns just the configured TS as PHP-array but nothing 
is resolved/parsed.

So long I have not found a possibility to render TS as PHP-array in a BE 
module:


$this->cObj->cObjGetSingle($extTS['dummy'], $extTS['dummy.']);
results in an empty string:


$pageTS = \TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig 
($this->id);

$extTS = $pageTS['mod.'][$this->MCONF['name'].'.'];
debug($extTS,'$extTS');
// shows correct aggregated PHP-array of page TS (as in example of my 
first post)

$this->cObj = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tslib_cObj');
$dummy = $this->cObj->cObjGetSingle($extTS['dummy'], $extTS['dummy.']);
debug($dummy,'$dummy');
// shows empty var
// here I expected to find something like:
// array('dummy' => 'hello world!')

bernd
-- 
http://www.pi-phi.de/cheatsheet.html



More information about the TYPO3-dev mailing list