Project

General

Profile

Actions

Bug #56068

closed

typolink.returnLast = url prevents override?

Added by Alexander Rothmund almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2014-02-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions #1

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

Actions

Also available in: Atom PDF