Twig Components / Methods / selected
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
selected(returnsingle = false, returnarray = false)
is a Twig filter to return all selected records from the content
select field. Note, this filter should only be used on select fields that select from a list of Content, as opposed to
a list of items.
For a Content select field with multiple: false
:
For a Content select field with multiple: true:
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.