CMS Collection Template, create unique item

Currently have a CMS Collection Template, on this collection template is a button. Said button needs a custom attribute and this custom attribute needs to be different on each page within that collection. I cant find a way to do this and was wondering if someone has managed to do this, or is a template simply just that and it mimics every setting to each page?

You can use a collection item field to populate a data-attribute of an element with Custom Code (JavaScript). There is no other option.

Thanks for this Webdev, any ideas how i go about doing this?

Did you search the forums? I just did a search for “javascript collection bind” and the first result is pretty close. That should get you started.