Removing current page item from pro gallery using Velo

Hello,

I am currently using dynamic pages and I am trying to create a ‘similar projects’ pro gallery at the bottom of each project sector page, however whilst linking to an additional dataset e.g. schools, I cannot exclude the current project page from the pro gallery, e.g. ‘Smith School’. I currently have all my projects in one CMS. Is there a way that I could use velo code to remove the current project from this gallery in every dynamic page?

Thank you for your help.

In the dataset you connect to your gallery, you can use the filter setting and have it not include current item from dynamic dataset. No code needed.

(This assuming you have a compatible relational database between those two datasets)

2 Likes