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

Listing pages filter by fields using query params #1719

Closed
I-Valchev opened this issue Aug 14, 2020 · 1 comment · Fixed by #1782
Closed

Listing pages filter by fields using query params #1719

I-Valchev opened this issue Aug 14, 2020 · 1 comment · Fixed by #1782

Comments

@I-Valchev
Copy link
Member

I-Valchev commented Aug 14, 2020

Example contenttype:

pages:
  singular_name: page
  name: pages
  fields:
    title:
      type: text
    category:
       type: select
       values: [ one, two, three ] 

Then:
The /pages/?q=category=two will return the listing records only containing the category two.

Essentially, automating setcontent used with query params to filter on field values.

@bobdenotter
Copy link
Member

bobdenotter commented Aug 14, 2020

Sounds like a good plan.. I'd like to have that! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants