I created two content type Writer & Book. Writer has entity reference field that link to Book nodes. When display Writer node, I like the book nodes that attached to it display as list and the first list item has CSS class of "first".
Output the list is simple but I couldn't figure out how to add that CSS class.
If possible, I prefer do it with template.php or node--content_type.tpl.php flies, not using JQuery, Views or another modules.
Appreciate any suggestions, Thanks!