Skip to content

Please add pattern to collection filter. #7347

@taoguangc

Description

@taoguangc

I found that view_filters supports pattern, but filter does not. Can filter also support pattern?
ex:

collections:
  - name: 'blog'
    label: 'Blog'
    folder: 'content/blog'
    ...
    filter: 
      field: 'body'
      pattern: '\S+'
    fields:
      ...
    view_filters:
      - label: 'Post date'
        field: 'date'
        pattern: '\S+'

When I use the pattern in view_filters, it works, but it doesn't work in the filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui/collectiontype: 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