Skip to content

Instantly share code, notes, and snippets.

@kmgdevelopment
Created November 30, 2015 23:31
Show Gist options
  • Save kmgdevelopment/cc5c9f6699a23683bb56 to your computer and use it in GitHub Desktop.
Save kmgdevelopment/cc5c9f6699a23683bb56 to your computer and use it in GitHub Desktop.
Craft Comma-Separated Checkbox List
{% for option in entry.metaRobots.options %}{{option}}{% if not loop.last %}, {% endif %}{% endfor %}
@mildlygeeky
Copy link

A bit cleaner:

{{ entry.metaRobots.options|join(', ') }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment