I have a set of "category" pages such as:
- Dining (example.com/dining)
- Nightlife (example.com/nightlife)
We are using Zoo Triggers to filter out the categories appropriately. I am using a snippet to insert an icon into the header of each category. This snippet looks like so:
{exp:stash:set name="logo"}
{snippet:masthead_logo}
{/exp:stash:set}
The "logo" snippet looks much like this:
<div class="logo">
{exp:ifelse parse="inward"}
{if segment_1=='events'}
<img src="{site_url}images/placeholders/icon-events.png" height="125" width="125"/>
{if:elseif triggers:segment_1=='dining'}
<img src="{site_url}images/placeholders/icon-dining.png" height="125" width="125"/>
{if:elseif segment_1=='nightlife'}
<img src="{site_url}images/placeholders/icon-nightlife.png" height="125" width="125"/>
{if:elseif segment_1=='shopping'}
<img src="{site_url}images/placeholders/icon-shopping.png" height="125" width="125"/>
{if:elseif segment_1=='arts-culture'}
<img src="{site_url}images/placeholders/icon-arts.png" height="125" width="125"/>
{if:else}
{exp:ce_img:pair src="{interior_logo}" max="125" crop="no|center,center" fallback_src="{site_url}images/placeholders/member-placeholder-logo.png" allow_scale_larger="yes"}
<img src="{made}" alt="{title}" width="{width}" height="{height}" />
{/exp:ce_img:pair}
{/if}
{/exp:ifelse}
</div>
As you can see I am testing "dining" for Zoo Triggers segment_1, which is 'dining' when it parses. However, the conditional is not holding true as it were. In fact, not even the surrounding is passed from the snippet. So I suppose it isn't as much a why isn't this conditional working, but more of a why isn't this snippet working?
parse_conditionals="yes"
on the{exp:stash:set}
tag?