Is it possible to reference the CMS with custom code?

You don’t need to reference an ID, if you want to run a code for each item inside a collection list, you can add the embed inside the dynamic item and take advantage of document.currentScript (supported by all browsers but IE, but who cares is deprecated nowadays :smiley: ) it will give you a reference to the script html element itself. So you can make a query on the closest .w-dyn-item and from there make your manipulation!

2 Likes