{# In order to use blocks and override ez_render_field's template within this file, # we need to extend from another template and surround our content with a block. #} {% extends viewbaseLayout %} {% block content %}
{# using ez_field_value to display the title: since it returns an object the __toString method will be called to display the value #}

{{ ez_render_field( content, 'title' ) }}

{{ ez_render_field( content, 'body' ) }}
{% endblock %} {# This block is called above as a parameter (using _self) in ez_render_field in order to override # the default template. #} {% block ezkeyword_field %} {% spaceless %} {% if field.value.values|length() > 0 %} {% for keyword in field.value.values %} {# Forwarding on legacy #} {{ keyword }} {% if not loop.last %},{% endif %} {% endfor %} {% endif %} {% endspaceless %} {% endblock %}