bolt / bolt/docs

Get records with specific selected select-type value

Open
#1,163 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
PHP
Stars
45
Forks
189
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Bolt filtering/query documentation and the `internships.city` select configuration shown in the issue. Confirm the documented query syntax for matching one exact selected city, and record a working example whose results contain only matching internships.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.