Hi everyone,
I’m currently building a website using Wix Studio and I’m trying to implement tag-based filtering between two CMS collections, but I’m struggling to connect everything correctly.
My Collections
I have two collections:
1. Business Tags
This collection stores all the tags along with their images.
Fields include:
-
Tag Name
-
Tag Image
2. Registered Business
This collection stores all business information.
Fields include:
-
Business Name
-
Tags (linked to Business Tags collection)
-
Verified (Boolean)
-
Other business details
Current Setup
On the Home Page, I display the tag images from the Business Tags collection.
The tags are arranged horizontally in a repeater/grid, so users can visually browse categories.
What I Want to Achieve
When a user clicks a tag image on the Home Page, it should:
-
Navigate to the Registered Business page
-
Filter the list of businesses to only show businesses that contain that selected tag
-
Still respect the default filter, where only Verified = true businesses are shown
Example
If a user clicks the “Furniture” tag on the Home Page:
-
They should be taken to the Registered Business page
-
The page should display only verified businesses tagged with “Furniture”
What I’ve Tried
I’ve attempted:
-
Passing tag information between pages
-
Filtering the dataset
-
Using reference fields
But I haven’t been able to correctly filter the businesses based on the clicked tag.
Question
What is the best way to pass the selected tag from the Home Page to the Registered Business page and filter the dataset accordingly in Wix Studio?
Should I use:
-
URL parameters
-
Dataset filtering
-
Velo code
-
Dynamic pages
Any guidance or examples would be greatly appreciated.
Thanks in advance!