I have a list of possible taxonomy terms (vocab is called Categories) that can be referenced on a given node. For this particular vocabulary, I have a custom field called
field_icon_class. The intention here is to make use of CSS Sprites, so when the terms for the page are rendered, they hopefully get printed out with the field as the CSS Class for the individual taxonomy term.
I've tried numerous ways to get these to render the way I would like to no avail. I've tried:
along with a combination of other iterative statements which weren't successful. Ideally, I would like for each taxonomy term for that node to render along the following lines:
<div class="[field_icon_class]">[taxonomy term name]</div>
Any ideas how this can be accomplished, or any module exists to do so? Much thanks!