I want editors to select a Tag, and I want to display it’s name.
For instance. If a editor selects the Tag “Groups & Associations” I want it display “Groups & Associations”. Instead, the output only displays the slug “groups-associations”
Any insights on how to accomplish this?
Answered my own question and figured I would share with you.
{# Naming a pet Slug #}
{# module.chosentag is set by an editor in the Tag Field #}
{% set the_chosentag = module.chosentag %}
{# grab all the topics #}
{% set my_topics = blog_topics(‘default’, 250) %} {% for item in my_topics|sort %}
{# look for the match #} {% if the_chosentag == item.slug %}{{ item }}{% endif %} {% endfor %}
Let me know if I can help you!
ascedia.com
I dont understand what you did here. Can you explain it as you did it?