Display anchors based on query result

Hi,
I’m working on a documentation feature for my app.
I created tutos + tutos’ categories + locations.
I created a tuto’s page to display the tutos (+ cat results + search).

/ localhost testing preview /

Everything works.

I want to add help buttons on my differents pages that open specific tuto based on id.

These buttons open popin based on “location” ids > the popin load a specific documentation based on this id.

I’m trying to display (show/hide) the buttons based on the id > the button id 'ld allow to get the display info in db…
My button are not in a repeat.
How could I do?

I hope my explanation is clear enough.
Thanks for your help.