CMS Development

robertsillo
Member

Tags disappear without a reason

This is the code for the module I developed to call tags and show them on the website.

 

{% set blog_tags = blog_tags("default", 250) %}
<div class="tags-cloud">
{% set active_tag = tag %}
{% for tag in blog_tags %}
{% if loop.index <= module.visible_tags %}
{% if tag.slug == active_tag %}
<a class="tag active" href="{{ blog_tag_url(group.id, tag.slug) }}">{{ tag }}</a>
{% else %}
<a class="tag" href="{{ blog_tag_url(group.id, tag.slug) }}">{{ tag }}</a>
{% endif %}
{% endif %}
{% endfor %}
</div>

 

Everything worked well until this morning when without any reason, they disappeared. It's not the first time that has happened and it's not the only module that is based on tags that have this behavior.

 

The array I printed in the code now is empty. Last week was filled and nothing was touched from there because the whole website was finished.

 

Can anyone explain to me why this is happening and if there is a solution to this?

0 Upvotes
1 Reply 1
sharonlicari
Community Manager
Community Manager

Tags disappear without a reason

Hey @robertsillo 

 

Thank you for reaching out! Not sure why you are having this error, however I'm curious to know if you have checked/followed this guide about the HubL standard tag

 

Thanks

Sharon


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !




0 Upvotes