[TYPO3-core] RFC #9282: Allow subkeys for TypoScript "config." array
Dmitry Dulepov [typo3]
dmitry at typo3.org
Thu Sep 4 20:24:06 CEST 2008
Hi!
Benjamin Mack wrote:
> Problem:
> As this issue came up in the recent discussion about the simulate static
> typo3, I wrote the supersimple patch for it.
>
> The config. parts in TypoScript from the page-specific config. (e.g.
> page.config...) and the generic config part are merged together when a
> page is generated.
>
> However, it is not possible to have subkeys in there:
> config.myoption = 1
> config.myoption.param1 = foo
> page.config.myoption.param2 = bar
>
> In the core right now, param1 will be removed when it is merged and so
> it's unaccessible. This is because the merge is not done in a recursive
> way.
>
> Solution:
> The attached patch fixes this issue and allows the above examples.
I thought why it was not possible before but I could not find any reason. So +1 to the patch. Please, commit it! Very nice thing to have!
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/pages/book-reviews/presentation-zen-by-garr-reynolds/
More information about the TYPO3-team-core
mailing list