Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nested Switchee Conditional
{if segment_1 == 'blog'}
{exp:switchee case='{segment_2}' parse='inward'}
{case value='#^P(\d+)$#|""|category|author'}
{!-- Content --}
{/case}
{/exp:switchee}
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment