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

Please add pattern to collection filter. #7347

Open
taoguangc opened this issue Dec 12, 2024 · 0 comments
Open

Please add pattern to collection filter. #7347

taoguangc opened this issue Dec 12, 2024 · 0 comments
Labels
area: ui/collection type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@taoguangc
Copy link

taoguangc commented Dec 12, 2024

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.

@taoguangc taoguangc added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Dec 12, 2024
kyoshino added a commit to sveltia/sveltia-cms that referenced this issue Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ui/collection type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

2 participants