Issue Bug Resolved

#106678Invalid Sorting for pages in backend after copy/paste when TCA field "sorting" for pages is defined as "passthrough" needed for extbase

Olivier SC 05/12/25, 08:02 updated 11/13/26, 07:35

Description

I’m using Extbase to create and/or update pages and Extbase need a real TCA declaration if you want to update fields (or fields are not persisted).

In some part of my proccess, I need to specify sorting for pages, so I need “sorting” field in TCA for pages (which is not provided by default by TYPO3), with something like :

$GLOBALS['TCA']['pages']['columns']['sorting'] = [
    'config' => [
        'type' => 'passthrough',
    ],
];

But when the “sorting” field is added in TCA declaration, something goes wrong in backend with “copy/paste after” function in pages tree.

For example, there is a pages tree :

"Folder Page"
  -> Page A
  -> Page B
  -> Page C
  -> Page D
  -> Page E
  -> Page F

If I right-click on “Page E” -> “Copy”, and then right-click on “Page 1” -> Paste after” , the page is added but not after “Page A”, the page is added after the copied page (Page E), resulting the following pages tree :

"Folder Page"
  -> Page A
  -> Page B
  -> Page C
  -> Page D
  -> Page E
  -> Page E (Copy 1)
  -> Page F

the sorting value of the added page is equal to the sorting value of the copied page (value not recalculated)

I’ve tried with different TCA type (type=“input” / type=“number”) but the result is the same (sorting is not recalculated)

If I remove the TCA passthrough declaration, the “paste after” work as expected, but I can’t update sorting with extbase anymore.

Function “Moving page” is not affected by this issue.

Adding a new page by drag and drop from the “drag and drop toolbar” (top of the pages tree) is not affected by this issue.

Tested on TYPO3 V12 and TYPO3 V13 (I don’t have V14 project).

It’s working fine on TYPO3 V11 (not affected by this issue).

Reviews 2

History 411

  1. Thomas Stranz commented <span data-processor="relativetime" data-value="2026-01-13T16:46:44+00:00" > 01/13/26, 16:46 </span>

    I have the same issue with TYPO3 v13 and EXT:news version 12.3.1 and 14.0.1

  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-13T07:35:18+00:00" > 11/13/26, 07:35 </span>

    Applied in changeset commit:6e2f3288862073c1f7ac2cb68be5cca3ab19cde6.