Retrieve all tags from a filtered collection on a separate page

Highlighted

Hi,

Let's say I have a main collection "all" and want to get all its tags on a different page. This is what I'd use

{% for tag in collections['all'].all_tags %}

now, what if I want to show all tags after filtering the collection by "Blue"? This evidently doesn't work

{% for tag in collections['all/blue'].tags %}

 Right now, I achieved this by creating multiple collections for the general tags I have, but I'm trying to expand this to work with any tag combination.

Does anyone know a better way than creating separate collections for each possible combination?

Or get all tags from a URL like mystore.com/collections/all/blue

-Like and Mark as an Accepted Solution if my reply is helpful
I'm not an expert, these are my own experiences or codes that I gathered from others. I'm using Debut.
I have my own online pet supply store check it out at
PETLANTIS.CA
0 Likes