My "Article" node type has a field image. I can print this field in a node template with
<?php print render ($content['field_image']); ?>
I have a simple View which lists Articles here. The default Views template /modules/views/theme/views-view.tpl.php prints the content with <?php print $rows; ?>
(line 58 here).
I want to use my own Views template which will specify the various elements of the node ie print title, print image, print body etc instead of <?php print $rows; ?>
I don't think...
<?php print render ($content['field_image']); ?>
...will work in a Views template so what syntax do I need?
In case it helps I have the devel / krumo output on the page.
I am aiming to use the Views template to control the layout of the Articles in the View, for example I might want the View to look like this:
So I think the default Views template's <?php print $rows; ?>
is no good for this and I need to isolate the various elements of the View's output (image field etc)
Thanks...