Questions tagged [segments]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
351 views

Checking if a value matches an entry type handle

I am trying to check if a value provided by the user (url segment) matches an entry type, and if not redirect to 404. {% set section = craft.sections.getSectionByHandle('shop') %} {% set entryTypes = ...