Feature #92576

Page Tree filter: make it possible to explicitly filter by uid

Added by Sybille Peters 8 months ago. Updated 7 months ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Pagetree
Target version:
-
Start date:
2020-10-16
Due date:
% Done:

0%

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

Description

Use case:

It is possible to filter by uid but this often yields too many results.

Example:

filter by "1" in "Introduction installation"

Proposal

Make it possible to explicitly filter by uid by prepending it with uid=. The rest of the behaviour stays the same.

Further possible solutions

Twitter: "Tweet": https://twitter.com/sypets/status/1319712875167031299

Usecase 1: I have the page opened in FE, I want to jump to this specific page in the backend.

Usecase 2: I already have the page id or URL and am in BE and want to jump to the page.

Some feedback suggests there is a wish to extend this further and not just filter by uid.

Comments from Twitter and Gerrit:


You know what’s even more important (to me)? Having a focus on the found page inside the full tree after your search.

"Alex Schnitzler": https://twitter.com/alex_schnitzler/status/1319758932370509831


What I'm often missing is use case 1. Allowing the filter to search also in absolute frontend URLs might help there. E.g. you copy the FE URL and filter by it -> page tree focus on the page with that URL (or closest match of parent page if it for example is a news detail URL)

"Claus Due": https://twitter.com/sypets/status/1319928636724707328


My question would be, should we extend it again per psr14 event? For me it is conceivable to search for further fields, for example, as the integrator would like to extend it for himself.

"Guido Schmechel": https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154


What about something like this?

"Sybille Peters": https://twitter.com/sypets/status/1319936557055442948


I like the idea here but I find myself thinking if we should make it even more generic so you can filter by any (valid TCA) property, e.g.:
no_index=1
slug=mypage
hidden=1

This might bring a significant benefit in being able to get overviews of all pages configured in a certain way, in addition to being able to search for specific UIDs.

Much like Solr has the "field:somevalue" syntax for filters!

"Claus Due": https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154


I did something similar with visual search in a flow package.

See FLOW.VisualSearch

Kay Strobach

You may also checkout the search in gitlab. It’s also nice from the UI.

Kay Strobach


etc. ... there is more on Twitter

Subproblems

  • how to jump to a specific page in the page tree? - additionally to filtering there was a wish to jump to the page - if result is one page
  • get exact page match (or uid) from URL? - in order to be able to copy the URL into the field as well.

Related

  • current page selected - looses focus after filter is released

What I am talking about is this: I have a tree with around 3000 pages, heavily nested. I search a page, find it, but then habe that page selected and the roofline opened after removing the search word. I have to remember the rootline and open it manually then.

"Alex Schnitzler": https://twitter.com/cumurux/status/1319924121313095682


In an instance with 12k pages and I often find myself taking root path notes on paper to locate the page again after releasing the filter


Files

pagetree-too-many-results.png (20.7 KB) pagetree-too-many-results.png Sybille Peters, 2020-10-16 17:40
pagetree.png (5.35 KB) pagetree.png Sybille Peters, 2020-10-16 17:41
filter_page2.png (20.8 KB) filter_page2.png Sybille Peters, 2020-10-24 12:22

Related issues

Related to TYPO3 Core - Feature #36075: Advanced Filtering for the Page-TreeNew2012-04-14

Actions
Related to TYPO3 Core - Bug #83245: new pagetree - filter pages by IDClosed2017-12-06

Actions
Related to TYPO3 Core - Epic #93547: Collection of problems with large sitesAccepted2021-02-19

Actions
#1

Updated by Gerrit Code Review 8 months ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154

#2

Updated by Gerrit Code Review 8 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154

#3

Updated by Riccardo De Contardi 8 months ago

  • Related to Feature #36075: Advanced Filtering for the Page-Tree added
#4

Updated by Riccardo De Contardi 8 months ago

  • Related to Bug #83245: new pagetree - filter pages by ID added
#5

Updated by Sybille Peters 8 months ago

Interesting. You had a very similar idea in #83245.

#6

Updated by Gerrit Code Review 8 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154

#7

Updated by Sybille Peters 8 months ago

#8

Updated by Sybille Peters 8 months ago

  • Description updated (diff)
#9

Updated by Sybille Peters 8 months ago

  • Description updated (diff)
#10

Updated by Gerrit Code Review 7 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/66154

#11

Updated by Sybille Peters 4 months ago

  • Related to Epic #93547: Collection of problems with large sites added

Also available in: Atom PDF