- {% if content_type.fieldDefinitionsByIdentifier[field_name].fieldTypeIdentifier == 'ezselection' %}
- {% set selectionArray=field_value|split('-') %}
+ {% if content_type.fieldDefinitions.get(field_name).fieldTypeIdentifier == 'ezselection' %}
+ {% set selectionArray=field_value.value|split('-') %}
{% if selectionArray|length > 1 %}
{% endif %}
{% for selected_key, selected_value in selectionArray %}
{% if loop.length == 1 %}
- {{ content_type.fieldDefinitionsByIdentifier[field_name].fieldSettings.options[selected_value] }}
+ {{ content_type.fieldDefinitions.get(field_name).fieldSettings.options[selected_value] }}
{% else %}
- - {{ content_type.fieldDefinitionsByIdentifier[field_name].fieldSettings.options[selected_value] }}
+ - {{ content_type.fieldDefinitions.get(field_name).fieldSettings.options[selected_value] }}
{% endif %}
{% endfor %}
{% if selectionArray|length > 1 %}
{% endif %}
{% else %}
- {{ field_value }}
+ {{ field_value.value }}
{% endif %}