[TYPO3-core] RFC: #15626: Feature: Add stdWrap to config.additionalHeaders
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Sep 6 20:04:04 CEST 2010
JoH asenau schrieb am 06.09.2010 14:29:
>> [PIDinRootline = XX] && [loginUser = *]
>> page >
>> page = PAGE
>> page.config.additionalHeaders = TEXT
>> page.config.additionalHeaders {
>> typolink.parameter = YY
>> typolink.returnLast = url
>> wrap = Location: {$config.baseURL}|
>> }
>> page.10 = TEXT
>> [end]
>
> Anyway the example should not work even with stdWrap added to additionalHeaders, because the syntax would be wrong due to stdWrap not being a fully fledged $this->cObj->cObjGetSingle:
>
> This should be enough to just get a typolink
>
> config.additionalHeaders {
> typolink.parameter = YY
> typolink.returnLast = url
> wrap = Location: {$config.baseURL}|
> }
>
> and if you wanted the parameter to behave as a TEXT object, you should do it like that:
>
> config.additionalHeaders.cObject = TEXT
> config.additionalHeaders.cObject {
> value = Something
> typolink.parameter = YY
> typolink.returnLast = url
> wrap = Location: {$config.baseURL}|
> }
>
> same for page.config.additionalHeaders and of course same for any other parameter that will gain stdWrap functionality in 4.5
So Joey, is that a +1 by reading from you? Or do you have any opinion on
that matter if this is a good or bad move, also with the background info
that you have a project that is commited to "pimp up typoscript" [1]
already? :)
Cheers,
Ernesto
[1] http://forge.typo3.org/projects/extension-tspimp
More information about the TYPO3-team-core
mailing list