I want to include different logos in email template, depending on the tickets tag.
I've set up triggers that add the corrosponding tags fx "tag.name" - but when i use liquid markup to check for this tag, it doesn't output the logo like it should.
I've tried two different ways:
<div>
{% assign tags = ticket.tags | split: " " %}{% for tag in tags %}{% case tag %}
{% when 'tag.name' %}
<img src="https://domain.com/file.jpg" />
{% endcase %}{% endfor %}
</div>
I've also tried this version:
{% assign tags = {ticket.tags} | split: " " %}
{% if tags contains 'tag.name' %}
<img src="https://domain.com/file.jpg" />
{% endif %}
What am i doing wrong?
Can a tag not include a period or where is the error?
When i check the ticket, i can see the tag is assigned as it should be. And the trigger that assigns the tag, is before the email trigger.



