By monkeybeach on
I'm using Views 'teaser list' facility to generate a list of news stories on my home page. The HTML for each teaser is generated through a custom node.tpl.php.
I'm aware that the menu in Drupal now adds classes of first and last to the lists it generates, to allow CSS to identify these.
How would I go about doing the same with my view? I want to add a class of 'last' to the last teaser that is output.
I doubt this can be done in the Views UI, so I guess it needs to be done in node.tpl.php
Any ideas as to how to approach this?
Comments
bump
/bump
I've tried a variety of ways
I've tried a variety of ways to get this to work... I can't seem to do so via a View theme, so I'm kinda hitting a brick wall here... I definitely second this question!