accessing fields in a view template I have a view that I want to create a view template for in my theme.

So, I have created: views-view--homepage-suppliers.tpl.php

I have then several content items of content type: Supplier that the view uses.

The have various fileds, such as title, field_supplier_image

How do i then access these fields in this view template?

Is it something along the lines of:

$rows['field_supplier_image']?

thanks
It would appear your using a 'Display output' template when you probably want a 'Row style' output so you can access fields. You will need to change your tempate by going to 'advanced > theme information', it will probably be something similar to 'views-view-fields--homepage-suppliers.tpl.php'.

You can then get a nid from the field and access a whole host of information through the node object.

  $nid = $row-&gt;{$view-&gt;field['field_supplier_image']-&gt;field_alias}; 
  $node = node_load($nid);


If you var_dump() the $node variable you can see what you have to play with.