Hello
I need help displaying only the current collection on my site .
the block of code for the sidebar is
-
{{ linkItem.title }}
{%- if hasDropdown -%}
{%- endif -%}
-
{% for linkChildItem in linklists[linkItem.handle].links %}
{%- assign hasDropdown = true -%}
{%- if linklists[linkChildItem.handle] != empty -%}
{%- assign hasDropdown = true -%}
{%- endif -%}
-
{{ linkChildItem.title }}
{%- if hasDropdown -%}
{%- endif -%}
-
{% for linkChildItem2 in linklists[linkChildItem.handle].links %}
- {{ linkChildItem2.title }} {% endfor %}
{% endfor %}
{% endfor %}
-
{{ linkChildItem.title }}
{%- if hasDropdown -%}
{% for linkItem in linklists[velaCategories].links %}
{%- assign hasDropdown = false -%}
{%- assign subItem = forloop.index -%}
{%- if linklists[linkItem.handle] != empty -%}
{%- assign hasDropdown = true -%}
{%- endif -%}
but i want to only display the current collection the user clicked instead of all the collections again.
Is there a way around it?
thanks in advance