{%- import 'apostrophe-ui:components/buttons.html' as buttons -%} {% for item in data.choices %} {# If the join has relationship properties, we need to go one more step to #} {# get to the item itself. The relationship properties are in #} {# item.relationship. -Tom #} {% set choice = item.item or item %} {% set relationship = item.relationship %}