Project

General

Profile

Actions

Bug #101683

open

fullRootLine (getText) no longer works with negative values

Added by Sebastian Klein over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2023-08-15
Due date:
% Done:

0%

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

Description

Along the rootline, the value -1 represents the current page.

According to the TSref, fullRootLine is supposed to work with negative values: https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Data.html?highlight=fullrootline#fullrootline

But I get no output for key 20 of the following TypoScript:

page = PAGE
page {
    // Renders title of current page:
    10 = TEXT
    10.data = leveltitle : -1

    // Bug – returns no value:
    20 = TEXT
    20.data = fullRootLine : -1, title

    // Just for completion – positive integers will return a value:
    30 = TEXT
    30.data = fullRootLine : 0, title
}

Tested in TYPO3 v12, v11 and v8 with identical results. Is this a long-lasting bug, or was this never supposed to work?

No data to display

Actions

Also available in: Atom PDF