Link to specific tag selection in dynamic page

Hello!

To start off, I am totally new to Wix so a lot of things I’ve been slowly learning over the past few weeks. I am working on a site that is a business directory for an area of my city. I built the directory using CMS since that seemed to be the easiest way of listing out 70+ businesses without having to individually create each item. What I’d like to do is on the front page have categories that viewers can click on to quickly jump to a particular tag section (like clicking shopping would send you to the same filtered results as clicking ‘retail’ on the Directory page)

Is this something that’s doable? If not, how exactly should I go about building this directory?

Here’s what I have at the moment (ignore all the placeholder stuff).

Any help is appreciated!

You mean if a user clicks on the Shopping category on the home page, it should take them to the Directory page with the Shopping tag selected and the filter applied automatically? For that, you’ll need to handle the filtering using code. If you are not sure where to add this code, check out this video: https://youtu.be/iecNmOXDOHM


I’ve provided a working solution for a user having the exact same query in another thread which I’ve linked below, it should help you out:

However copy-pasting the code directly from there will not work; you may need to change the IDs of your dataset, tag column & elements from the Properties panel on the right.

1 Like

Hello Pratham!

I have used a TINY bit of Velo in my site to make it so that the tags automatically deselect when you select a new one. I will be so honest I don’t really understand how the coding works (I’ve only had experience with basic HTML and CSS in the past) so I have some questions:

How does changing this code allow me to get the link for the various organized sections? Do I need to manually code that into the landing page where I want the links to be?

Is there any way you could give me more detail as to how to get the information I need from my data set? I did see this prior thread and tried to put it into practice but I was struggling to understand them.