[TYPO3-core] RFC: #15626: Feature: Add stdWrap to config.additionalHeaders

JoH asenau info at cybercraft.de
Mon Sep 6 14:29:38 CEST 2010


> [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

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list