View items content type as css class in view template I have a view which outputs node titles from various content types, what I need is to theme the view template so one of the css classes for each row in my view is the item's content type. How would I do that?

EDIT: I tried to add the code below in the view template file but it doesn't seem to output any code:

&lt;ul class="&lt;?php print $fields['type']-&gt;content ?&gt;"&gt;


In fact I even tried outputting it as a regular field but it simply seems to be ignored:

&lt;?php print $fields['type']-&gt;content ?&gt;
You need to adjust the template (tpl) file that's being used to generate the markup for the Views output. I think everything you'll need as well as a bunch of related and equally important info can be found here: Mustardseed -> Views Theming