I have a javascript sound player that plays items from a website based on a data-count attribute in the dom elements. That data-count attribute is incremented in each dom element element using expression engine's {count} tag. The problem is, {count} is indexed starting at 1, I need it to be indexed starting from 0. Anyone have any ideas on how to remedy this short of using PHP inside my templates to subtract 1 from the count variable before assigning it to the DOM element?
Because I need it to spit out the proper number in the initial parsing stage, I developed a plugin for this. If you have this issue, you can download the plugin here: