Real World Craft CMS

Flexible Category Templates

We create a flexible category template that show category content, related adventures, and additional locations.

{% set locations = craft.categories.group('locations').id('not ' ~ category.id ?? '').all() %}
	{% for locationSet in locations | batch(4)  %}
	<ul>
		{% for location in locationSet %}
		<li class="pb-2">
			<a class="hover:text-secondary text-black underline" href="{{ location.url }}">
				{{ location.title }}
				</a>
		</li>
	{% endfor %}
	</ul>
{% endfor %}

Real World Craft CMS is made up of the following videos: