Project

General

Profile

Actions

Feature #87551

open

Explicitly allow ignoring "pidInList" in TS select function

Added by Andreas Wolf almost 6 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Should have
Assignee:
Category:
TypoScript
Start date:
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently, the implementation of the TypoScript function "select" will automatically set "pidInList" to "this" if it is not set, even when "uidInList" is specified and points to a uid on a different page.
The result will then be empty, even if the record exists and could be displayed. This is confusing and hard to understand, especially since there is no documented way of ignoring "pidInList". Instead, some people implement workarounds with high recursion limits e.g. descending from the site's root page.

My proposal is to add a new setting "ignore" that will lead to the value not being evaluated. This works already, since the non-empty value will prevent the default of "this" from being used. However, it is undocumented behaviour and thus might break in the future w/o any notice. Therefore, let's make it explicit and document it.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #93450: ContentObjectRenderer: allow TypoScript select object without any constraint of uidInList or pidInListUnder Review2021-02-05

Actions
Actions

Also available in: Atom PDF