{# Content Builder Neo ====================== Neo Content Builder use the Neo Plugin #}
{% if entry.contentBuilderNeo.level(1)|length %} {% set neoField = entry.contentBuilderNeo.level(1) %} {% for content in neoField %} {# Check if first Type is not a Section #} {% if loop.first and content.type != 'contentSection' %} {% include '_modules/_contentSection/_template' with { data: content, name: '' } %} {% endif %} {# Check if an other Section is opened and close the Section before #} {% if content.type == 'contentSection' %} {% if not loop.first %}
{% endif %} {% include '_contentBuilders/_contentBuilderModules' with { data: content } %} {# All other Content Modules #} {% elseif content.type != 'contentSection' %}
{% include '_contentBuilders/_contentBuilderModules' with { data: content } %}
{% endif %} {% endfor %} {% endif %}