{# Content Builder Matrix ====================== Matrix Content Builder use the Core Matrix Field from Craft CMS #}
{% if entry.contentBuilderMatrix|length %} {% set matrixfield = entry.contentBuilderMatrix %} {% for content in matrixfield %} {% if loop.first and content.type != 'contentSection' %} FIRST CONTENT BUILDER BLOCK IS NOT A SECTION!!! {% elseif content.type == 'contentSection' and loop.first %}
{% elseif content.type == 'contentSection' and not loop.first %}
{% elseif content.type != 'contentSection' %}
{% include '_contentBuilders/_contentBuilderModules' with { data: content } %}
{% endif %} {% endfor %}
{% endif %}