Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

option_list Modifier

Turn an array into a pipe-delimited string. Useful when passing an array of things into a parameter. Generally unnecessary though as most parameters can now accept a wide range of datatypes.

collections:
- blog
- news
- wigs
{{ collection from="{collections|option_list}" }}
<statamic:collection
:from="Statamic::modify($collections)->optionList()->fetch()"
>
 
</statamic:collection>

Can also be used by its alias, piped.

HR: Section
Related Modifiers

These similar modifiers may aid you on your quest.

rotate-vertical
HR: Section
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →