So I have been able to implement fancybox js with webflow CMS from the other tutorials on here, just setting the attribute fancy-box is probably the easiest implementation. What I would like to do though is separate the different galleries. The problem is if I set attribute fancy-box gallery then it gets applied to all items in the CMS collection. So they all go together.
In this case I have a photo collection nested in photographers and want to have fancybox bundle photos for the different photographers. Instead of all the photos.
I have tried adding an embed for the running of the fancybox js script and then changing gallery to a dynamic option but the script won’t run. It only seems to run from the page level.
Is there a way to add a script snippet to bundle the photos in this case based on a collection item field?
and live is https://gregoryzarian.webflow.io/