Project

General

Profile

Actions

Bug #90645

closed

###CURRENT_PID### does not contain table.pid but actually pages.uid (and thus does not work for for pages.pid)

Added by S P over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2020-03-05
Due date:
% Done:

100%

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

Description

When using the marker ###CURRENT_PID###, for example in the Suggest wizard of the group field, it does not contain "current table.pid" but actually the "current pages.uid". This is wrong or atleast very misleading becasue you can not get the parent page when using allowed => pages.

I tried to suggest all parallel pages of the current page by using

'pages' => [
    'addWhere' => 'AND pid = ###CURRENT_PID###'
]

But this only suggest child pages, not sibling/parallel pages. This is becasue ###CURRENT_PID### actually contains the uid of the current page and not the content of the field table.pid (the "current pid" when acting on table pages) like the marker name reads.

Actions

Also available in: Atom PDF