Hot answers tagged

1

Updating for Craft3 and calling for different types, I wanted to share how I use the entry types to create different header/slider entry. {% set slides = craft.entries().section('slider') %} {% set entries = slides.all() %} {% for entry in entries %} {% if entry.type == 'type1' %} {# Your content for 'type1' Entry here #} {% endif %} {% ...


Only top voted, non community-wiki answers of a minimum length are eligible