Project

General

Profile

Actions

Feature #92576

closed

Page Tree filter: make it possible to explicitly filter by uid - to go to a specific page in the pagetree

Added by Sybille Peters over 3 years ago. Updated about 2 years ago.

Status:
Closed
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:

Sometimes one wants to go to a specific page in the backend.

One idea to do this is to filter by uid in the pagetree filter.

It is possible to filter by uid but this often yields too many results (because the uid is also searched in the title and other fields).

Example:

I have many examples like this in my site, e.g. when trying to filter by a uid.

When searching for matching pages, the search is performed like this (v10):

If the value is numeric, an exact search in uid is added to the search query.

But the search is combined by OR with the other constraints:

  • uid=VALUE
  • nav_title LIKE VALUE
  • title LIKE VALUE

So results are often found, if a title or nav_title contains numbers (e.g. a year).

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 5 (3 open2 closed)

Related to TYPO3 Core - Feature #36075: Advanced Filtering for the Page-TreeClosed2012-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
Related to TYPO3 Core - Feature #89979: Jump to a specific page in the page treeNew2019-12-17

Actions
Related to TYPO3 Core - Feature #99196: Page tree: Search for slugUnder Review2022-11-25

Actions
Actions #1

Updated by Gerrit Code Review over 3 years 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

Actions #2

Updated by Gerrit Code Review over 3 years 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

Actions #3

Updated by Riccardo De Contardi over 3 years ago

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

Updated by Riccardo De Contardi over 3 years ago

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

Updated by Sybille Peters over 3 years ago

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

Actions #6

Updated by Gerrit Code Review over 3 years 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

Actions #7

Updated by Sybille Peters over 3 years ago

Actions #8

Updated by Sybille Peters over 3 years ago

  • Description updated (diff)
Actions #9

Updated by Sybille Peters over 3 years ago

  • Description updated (diff)
Actions #10

Updated by Gerrit Code Review over 3 years 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

Actions #11

Updated by Sybille Peters over 3 years ago

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

Updated by Gerrit Code Review over 2 years ago

Patch set 5 for branch main 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

Actions #13

Updated by Sybille Peters about 2 years ago

  • Subject changed from Page Tree filter: make it possible to explicitly filter by uid to Page Tree filter: make it possible to explicitly filter by uid - to go to a specific page in the pagetree
  • Description updated (diff)
Actions #14

Updated by Sybille Peters about 2 years ago

  • Related to Feature #89979: Jump to a specific page in the page tree added
Actions #15

Updated by Sybille Peters about 2 years ago

  • Status changed from Under Review to Closed

I am closing this now: There are 2 other issues open which cover the feature request to either filter by UID or jump to a specific page in the page tree (or a combination of both):

Actions #16

Updated by Christian Weiske over 1 year ago

Actions

Also available in: Atom PDF