Tag Name not Slug!

SOLVE
mIIwaukee
Contributor | Gold Partner
0 Upvotes
1 Accepted solution

Accepted Solutions
mIIwaukee
Solution
Contributor | Gold Partner

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

 

View solution in original post

1 Reply 1
mIIwaukee
Solution
Contributor | Gold Partner

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

 

View solution in original post