[TYPO3-dev] parsing TSconfig in BE-module?
bernd wilke
t3ng at bernd-wilke.net
Mon Mar 3 12:19:39 CET 2014
I want to configure my BE-module from Page-TSconfig.
But I can not find a way to parse the TSconfig.
all I find is a return of the origin Typoscript in a multidimensional array:
\TYPO3\CMS\Backend\Utility\BackendUtility:
:getModTSconfig($this->id, 'mod.' . $this->MCONF['name']);
or
\TYPO3\CMS\Backend\Utility\BackendUtility::getPagesTSconfig($this->id);
I thought of using the possibilities used from FE-Typoscript. something
like:
mod.web_txmyext1M1 {
dummy = COA
dummy {
10 = TEXT
10.value = hello
20 = TEXT
20.value = world
20.noTrimWrap = | |!|
}
}
should result in
{
'dummy' => 'hello world!'
}
instead of
{
'dummy' => 'COA',
'dummy.' => {
'10' => 'TEXT'
'10.' => {
'value' => 'hello'
}
'20' => 'TEXT'
'20.' => {
'value' => 'world',
'noTrimWrap' => '| |!|'
}
}
the solution should respect the rootline and aggregate TSconfig.
which functions am I missing?
T3 6.1
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-dev
mailing list