hana+nils

Choices

Choices is a plugin that provides methods to manage field options in the frontend. For any field – like select, multiselect or checkboxlist – that offers options settings in the blueprint, this plugin will load and return the readable text values for the keys stored in the content file. It works with static options directly set in the blueprint as well as dynamic ones loaded via query or api settings.

foreach ($page->fruits()->toChoices() as $fruit) {
    echo $fruit;
}
Version
3.0.2
License
MIT
Stars
17
Supports
K3
Updated
8 Jun 2023
More