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

Get records with specific selected select-type value #1163

Open
DebugAndConquer opened this issue Jun 15, 2021 · 0 comments
Open

Get records with specific selected select-type value #1163

DebugAndConquer opened this issue Jun 15, 2021 · 0 comments
Labels

Comments

@DebugAndConquer
Copy link

So I have a content type of regions:

regions:
    name: Regions
    singular_name: Region
    fields:
        r_id:
            type: number
            mode: integer
            required: true
        title:
            type: text
            class: large
            required: true
        slug:
            type: slug
            uses: r_id
    record_template: region.twig
    listing_template: regionList.twig
    listing_records: 20
    records_per_page: 20

And I have a contenttype of internships that uses the above:

internships:
    name: Internships
    singular_name: Internship
    fields:
     ...
        city:
            type: select
            label: City
            values: regions/{title}
            sort: title
            autocomplete: true
            required: true
        ...
    relations:
      ...
   ...

In my webapp I need to filter entries by city. How do I write the filtering query to select all internships where selected city is exactly one of the list?

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

No branches or pull requests

2 participants