Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add more options for filters #3841

Open
pKallert opened this issue Aug 21, 2024 · 1 comment
Open

FEATURE: Add more options for filters #3841

pKallert opened this issue Aug 21, 2024 · 1 comment
Labels
8.4 Feature Label to mark the change as feature

Comments

@pKallert
Copy link
Contributor

pKallert commented Aug 21, 2024

Description

When using the custom Filters options in the left sidebar I would sometimes like to filter by more than only nodeType. For example, filter by a certain folder and all of its subitems.

The use case would be: Reduce the amount of items in the main tree by moving parts of it into the filter function (everything below folder x moved to filter x). In this case this would be the folder for the footer menu.

We already had a discussion on that in #1691 .

Suggested settings

In the discussion @grebaldi suggested three possible settings on how this could be achieved:

Option 1: Per-NodeType basis

baseNodeType: 'Neos.Demo:Document.LandingPage'
perNodeType:
  'Neos.Demo:Document.LandingPage':
     baseNodeType: 'Neos.Neos:Document' # show any document beneath landing pages

Option 2: Per-level basis

baseNodeType: 'Neos.Demo:Document.LandingPage'
perLevel:
  2:
     baseNodeType: 'Neos.Neos:Document' # starting at level 2, show any document 

Option 3: Super flexible

baseNodeType: 'Neos.Demo:Document.LandingPage'
rules:
   - condition: ${q(ancestors).filter('[instanceof Neos.Demo:Document.LandingPage]').get(0) != null && level > 2}
     baseNodeType: 'Neos.Neos:Document'

Any input/preferences here would be great!

@pKallert pKallert added Feature Label to mark the change as feature 8.4 labels Aug 21, 2024
@pKallert
Copy link
Contributor Author

Poll for settings in filter:
❤️ Option 1
🚀 Option 2
🎉 Option 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.4 Feature Label to mark the change as feature
Projects
None yet
Development

No branches or pull requests

1 participant