Bug #56068
closedtypolink.returnLast = url prevents override?
0%
Description
I have the following TS:
page = PAGE page { 10 = COA 10 { 10 = TEXT 10 { typolink.parameter = 2 override.cObject = TEXT override.cObject.typolink.parameter = 3 } } 20 = COA 20 { 10 = TEXT 10 { typolink.parameter = 2 typolink.returnLast = url override.cObject = TEXT override.cObject.typolink.parameter = 3 override.cObject.typolink.returnLast = url } } }
I expect the first to be an anchor tag and the second to be a plain text URL, both pointing to the page with the ID 3.
However, what is actually happening is that the second link points to the page with the ID 2. The override does not happen.
Is this intended behavior? Does returnLast prevent overriding? What is happening here?
I tested in both 4.5 and 6.2beta4
Updated by Benni Mack almost 10 years ago
- Status changed from New to Closed
Yes. typolink comes after override in the list of stdWrap (see the order of the possible options here http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Stdwrap/Index.html). You see that override shows up, and then typolink at a later point.
You can use the stdWrap of the COA to overrride the value:
page = PAGE
page {
10 = COA
10 {
10 = TEXT
10.typolink.parameter = 2
stdWrap.override.cObject = TEXT
stdWrap.override.cObject.typolink.parameter = 3
}
}
or even better you can use override directly on the parameter
10 = TEXT
10.typolink.parameter = 2
10.typolink.parameter.override = 3