91324[FEATURE] Search translated pages in page tree filter
Commit message
Review
-
Code review CR +1
- Garvin Hicking +1
- Guido Schmechel +1
- Lina Wolf +1
- Fabien Udriot +1
-
Verified V -1
- Oli Bartsch -1
- Garvin Hicking +1
- Guido Schmechel +1
- Lina Wolf +1
- Fabien Udriot +1
- core-ci +1 CI
Issues 1
Files 13
- typo3/sysext/backend/Classes/Tree/Repository/PageTreeFilter.php22+185 −0
- typo3/sysext/backend/Classes/Tree/Repository/PageTreeRepository.php+12 −8
- typo3/sysext/backend/Configuration/user.tsconfig+1 −0
- typo3/sysext/backend/Resources/Private/Language/locallang.xlf2+9 −0
- typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php+2 −2
- typo3/sysext/backend/Tests/Functional/Tree/Repository/Fixtures/be_users_language_restricted.csvnew+6 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/Fixtures/be_users_no_translated_search.csvnew+3 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/Fixtures/TranslatedPages.csv2new+3 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/Fixtures/TranslatedPagesMultiByteCharacters.csvnew+8 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/Fixtures/TranslatedPagesMultipleLanguages.csvnew+4 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeFilterTest.phpnew+329 −0
- typo3/sysext/backend/Tests/Functional/Tree/Repository/PageTreeRepositoryTest.php+116 −0
- typo3/sysext/core/Documentation/Changelog/14.0/Feature-105833-ExtendedPageTreeFilterFunctionality.rst+29 −11
Review log 3140
Show 1015 earlier messages
-
Oli Bartsch uploaded patch set 1 10/29/25, 10:30
-
core-ci voted on patch set 1 V -1 10/29/25, 10:42 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87936
-
Oli Bartsch uploaded patch set 2
V -110/29/25, 11:41 -
core-ci voted on patch set 2 V +1 10/29/25, 11:48 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87951
-
Benni Mack commented on patch set 2 10/29/25, 12:16
PageTreeFilter.php:108I assume we do overlays somewhere else? Otherwise editors won't find the translations that were added in a workspace?PageTreeFilter.php:111shouldn't we allow more fields like nav_title as well?PageTreeFilter.php:205I wonder if it makes sense for editors to limit this to specific languages / translations? WDYT?FormPagePreviewRenderer.php:73how is this connected to the original feature? -
Oli Bartsch uploaded patch set 3
V +110/29/25, 13:28 -
core-ci voted on patch set 3 V -1 10/29/25, 13:43 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87973
-
Benni Mack commented on patch set 3 V -1 10/29/25, 13:45
Tests don't run through -
Oli Bartsch uploaded patch set 4
V -110/29/25, 13:59 -
Oli Bartsch commented on patch set 4 10/29/25, 14:01
PageTreeFilter.php:47ReplyDonePageTreeFilter.php:108ReplyDonePageTreeFilter.php:111ReplyWe search for it but don't need to select itPageTreeFilter.php:205ReplyI have limited the search to allowedLanguages of a user. A specific selection for this property is IMO to much and complicated.FormPagePreviewRenderer.php:73ReplyOh I encountered this when developing the original patch. Will move this into a separate fix. Thanks. -
core-ci voted on patch set 4 V -1 10/29/25, 14:09 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87980
-
Oli Bartsch uploaded patch set 5
V -110/29/25, 14:31 -
core-ci voted on patch set 5 V +1 10/29/25, 14:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/87988
-
Lina Wolf commented on patch set 5 V +1 10/29/25, 20:17
NICE!!! Tested this with chinese and arabic pages, worked fine! Will be such a relieve to our editors -
Lina Wolf commented on patch set 5 10/29/25, 20:21
Nice work, just some small remarksPageTreeFilter.php:208If you are introducing new lebels, I would switch to the translation domain short format right awaylocallang.xlf:240New language labels should be in snake_case as that it the new standardTranslatedPages.csv:3I would add test cases with arabic, chinese and Umlaute
-
Oli Bartsch uploaded patch set 6
V +110/29/25, 21:22 -
Oli Bartsch commented on patch set 6 10/29/25, 21:23
PageTreeFilter.php:208ReplyPlease see https://forge.typo3.org/issues/107844. We decided to wait until the new API is finalized. Otherwise we generate a mess of different usages now and make it even harder to migrate them in the future.locallang.xlf:240ReplyDoneTranslatedPages.csv:3ReplyDone -
core-ci voted on patch set 6 V +1 10/29/25, 21:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/88053
-
Benni Mack commented on patch set 6 V +1 10/29/25, 21:50
works as expected. need to do a code review now. -
Benjamin Franzke commented on patch set 6 CR -1 10/30/25, 00:38
PageTreeFilter.php:214The status information API is here for extensions to provide concrete status information about the page. That status must not be different depending on how the page got into view (via navigation or search). This is not meant to output query information, also this is semantically not a warning. And it becomes overwhelming, I get a title like > id=1766 - styleguide frontend demo3; Translation; Found in translation: styleguide demo language danish: "[Translate to styleguide demo language danish:] styleguide frontend demo", styleguide demo language german: "[Translate to styleguide demo language german:] styleguide frontend demo", styleguide demo language french: "[Translate to styleguide demo language french:] styleguide frontend demo3", styleguide demo language spanish: "[Translate to styleguide demo language spanish:] styleguide frontend demo3" This is a hack that MUST BE avoided, sorry. (The fact, that you need to forcefully overwrite workspace status, actually emphasizes that) My recommendation is to omit this information, simply because we cannot represent it in a sensible way. -
Oli Bartsch uploaded patch set 7
CR -1V +110/30/25, 07:58 -
Oli Bartsch commented on patch set 7 10/30/25, 08:00
PageTreeFilter.php:214ReplyThanks. That right, status information might confuse here. I have changed this to just add the label. I additionally display a "Found in multiple translations" in case the term matches more than one translation. to not make the label this overwhelming. -
core-ci voted on patch set 7 V +1 10/30/25, 08:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/88086
-
Fabien Udriot commented on patch set 5 10/30/25, 08:15
Nice feature!PageTreeFilter.php:87Create a method to wrap the logic of cache identifier computing? $this->computeCacheIdentifier()PageTreeFilter.php:164Method to compute the cache identifier as above.PageTreeFilter.php:225Hardcoded value?PageTreeFilter.php:241We could add sorting of languages so to have always the same order, as it will be useful for computing a cache identifier. Just a thought. -
Fabien Udriot voted on patch set 7 V +1 10/30/25, 08:23
-
Oli Bartsch uploaded patch set 8
V +110/30/25, 08:37 -
Oli Bartsch commented on patch set 8 10/30/25, 08:38
PageTreeFilter.php:87ReplyDonePageTreeFilter.php:164ReplyDonePageTreeFilter.php:225ReplyYes this is how the API works. Or do you mean this should be from a class constant?PageTreeFilter.php:241ReplyDone -
core-ci voted on patch set 8 V +1 10/30/25, 08:47 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/88089
-
Fabien Udriot commented on patch set 8 10/30/25, 08:56
PageTreeFilter.php:225ReplyI mean that it’s not ideal to have colors hardcoded in such way. Can be a class constant or at least a constant `private const LABEL_COLOR = '#F5A770';` -
Oli Bartsch uploaded patch set 9
V +110/30/25, 09:00 -
Oli Bartsch commented on patch set 9 10/30/25, 09:00
PageTreeFilter.php:225ReplyDone -
core-ci voted on patch set 9 V +1 10/30/25, 09:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/88092
-
Fabien Udriot voted on patch set 9 CR +1 V +1 10/30/25, 09:22
-
Lina Wolf voted on patch set 9 CR +1 V +1 10/30/25, 11:46
-
Guido Schmechel commented on patch set 9 CR +1 V -1 10/30/25, 13:49
Tested as follows: Created two translations (Danish/Norwegian) in live mode. Single and multiple translations were found. Very cool! Defined a term to search for in both translations. PageTree is marked. Everything is fine. In workspace mode, changed these translations so that this term is changed in both languages. The page filter in the navigation now marks the page for the old and new term. Is this intentional? -
Oli Bartsch commented on patch set 9 10/30/25, 14:21
Reply
yes it is the same like the PageTreeRepository currently works. I did this for consistency reasons. Might be tackler separately for the whole. -
Guido Schmechel commented on patch set 9 V +1 10/30/25, 14:47
Reply
Thx for clarification! -
Garvin Hicking commented on patch set 9 CR +1 V +1 10/31/25, 12:20
Nifty! :) -
Oli Bartsch commented on patch set 9 V -1 11/02/25, 09:50
Unresolved
Please review https://review.typo3.org/c/Packages/TYPO3.CMS/+/91402 for an improved approach, based on further feedback. -
Oli Bartsch abandoned the change 02/01/26, 11:42
PageTreeFilter.php:47