Allow views to filter by no parent menu item

Created on 10 November 2022, about 2 years ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

There's no way that I can see to filter a view of menu link content items by ones that have no parents, or only ones that have parents.

Steps to reproduce

Create a view, add the 'parent plugin id' filter, use any of the operators provided.

Proposed resolution

Tweak the views definition so that views knows that the field can be empty, and thus will provide a filter for NULL/NOT NULL.

Remaining tasks

Write and review the code.

User interface changes

Adds a couple of additional operators to the views filter interface for the field.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom steven jones

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024