Modifier: option_list


Turn an array into a pipe-delimited string. Useful when passing an array of things into a parameter.

collections:
  - blog
  - news
  - wigs
{{ collection from="{collections|option_list}" }}

Can also be used by its alias, piped.

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on October 5, 2017