Get records with specific selected select-type value
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- php
- Domain
- documentation
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.
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?
- Dominant language
- PHP
- Stars
- 45
- Forks
- 189
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bolt/docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
Outdated Roadmap link in `https://docs.boltcms.io/other/contributing#step-2-rfc-moved-to-roadmap` Open
Difficulty 1/5 Under an hour Newbie friendliness 50/100
Similar issues
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/fulltextsearch#1011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
phpstan/phpstan-doctrine#794 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/static-site-importer#1767 ·