CMS Development

mIIwaukee
Contributor | Diamond Partner
Contributor | Diamond Partner

Tag Name not Slug!

SOLVE
0 Upvotes
1 Accepted solution
mIIwaukee
Solution
Contributor | Diamond Partner
Contributor | Diamond Partner

Tag Name not Slug!

SOLVE

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

2 Replies 2
BkT
Member

Tag Name not Slug!

SOLVE

I dont understand what you did here. Can you explain it as you did it?

0 Upvotes
mIIwaukee
Solution
Contributor | Diamond Partner
Contributor | Diamond Partner

Tag Name not Slug!

SOLVE

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