I’m creating a code snippet to be used troughout several pages - if, however, it’s called from a specific URL it should show only specific entries.
{if "{segment_1}" == "ladies" || "{segment_1}" == "basic" || "{segment_1}" == "all-inclusive"}
{exp:weblog:entries weblog="clubs" limit="1" orderby="random" category="not 72" search:club_type="{segment_1}"}
{if:else}
{exp:weblog:entries weblog="clubs" limit="1" orderby="random" dynamic="off" category="not 72"}
{/if}This code however is working in the specified directories - but it seems the :else rule isn’t working.
Any ideas? Has this something to do with the order of parsing?