I’m trying to create a CMS powered product view that pulls an Image Gallery into a slider with thumbnails as the preview. So I have a CMS collection of the Products, then a nested CMS Slider with CMS Dots—my issue is that the first product in the CMS list gets populated with all the CMS Slider elements and dots rather than each one populating with their content.
I assume this is and ID issue, and I need to have a dynamic ID for each item, but I’m not sure how to go about that. The Attributes Automated Support Service tells me the “list” and “slider” element are duplicated, surely caused by the CMS nesting, just not sure how to dynamically override it.
My desired example is this page here (product, slider thumbnails on hover, etc.): Nike Shoes
Note:
I’m using Foxy. io as my e-commerce backend, so everything is developed as a CMS collection instead of Webflow native e-commerce. There may be other CMS workarounds, but I haven’t thought of any yet.
Thanks, @Support-Luis! Glad I was on the right track; unfortunately, my scripting experience is extremely limited.
You can then add a small script that iterates through all the items and sets the multiple instance attributes like in the capture below.
And trigger the init of the scripts with…
Any chance you can help me with these too? I cringingly prompted some AI, but haven’t got it working, nor can I troubleshoot. Here’s what it’s given me so far: