I've tried rewriting the row and also theming the Views row, but I'm not having any luck. Maybe I'm doing something wrong.
I have the format of my view as 'Unformatted View', and in the format settings there is an option to specify the 'Row Class', which is then added to each row. However, I need to add a data-attribute to my rows in addition to a class. The data-attribute needs to be one of the fields - the Taxonomy Term name field (in lower case).
For instance, my field is Taxonomy Term Name. Currently, the HTML markup of each row looks like this:
<div class="my-row">Term</a>
However, I need it to look like this:
<div class="my-row data-attribute=".term">Term</a>
I am finding this fairly difficult to accomplish, and can't find much about it online. Could anyone be of help?