{# Global Entry Template ===================== For Channels #} {# Import Section Grouping Macro #} {% import '_macros/section-macro.html' as sectionSelect %} {# Extract Template Handle #} {% set templateHandle = sectionSelect.sec(entry) %} {# Subtemplate Setup #} {% set _t = { sectionHomeURL: templateHandle, bodyclass: templateHandle ~ ' entry', templatename: 'general/entry' } %} {% extends '_layout/main-layout.html' %} {% block content %} {% cache globally using key craft.request.path %}
{# Include Featured Image #} {% include '_components/featuredImage.html' with { data: entry } %}
{# Include Postmeta #} {% include '_components/postMeta.html' with { data: entry, type: templateHandle } %}

{{ entry.title }}

{# Include CategoryMarker #} {% switch templateHandle %} {% case 'blog' %} {% include '_components/marker.html' with { data: entry.categorySelectBlog, type: templateHandle } %} {% endswitch %}
{# Add Contentbuilder #} {% include '_builder/content-builder.html' %}
{# Adding some specific entry element #} {% switch templateHandle %} {% case 'blog' %} {% include '_components/relatedEntries.html' with { section: templateHandle~'Channel' } %} {% endswitch %} {% endcache %} {% endblock %}