Skip to content

Filter property for relation widget #3816

@hanneskuettner

Description

@hanneskuettner

Is your feature request related to a problem? Please describe.

Sometimes I don't want the full list of entries listed in a relation widget, eg. I don't want to allow the author to select posts with a draft flag set to true. As such it would be nice to add a filter property to the relation widget that would allow me to filter selectable options in the relation widget.

Describe the solution you'd like

Add a filter property to the relation widget that allows filtering of selectable options.
The filter syntax should be similar or the same as #3741.

Describe alternatives you've considered

Additional context

I already have a working version which still needs a bit of refactoring and then I'll open a PR tomorrow. I just want to collect additional feedback first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: extensions/widgetstype: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions