Hey Everyone,
I think I should give a little background to help you guys understand what I'm trying to achieve.
I have a view that filters content from only one content type. It then prints out 4 custom fields from this content type. These fields need to be styled specifically when shown in the view. Here is why:
One field is going to be used a background image. All other fields will be placed inside this field. If I were going to theme the node type it would look like this:
<div class="wrapExample" style="background: url
('<?php print image_style_url('foo', $node->field_foo['und'][0]['uri']); ?>')"
<div class="wrapInner">
<?php print render($content['foo_1']) ?>
</div>
<div class="wrapInner">
<?php print render($content['foo_2']) ?>
</div>
</div><!-- //wrapExample -->
What I can figure out is how to make this happen in a view. Since I can't post the entire field type this template doesn't get used, so I need to theme it in a view.
Using Devel to the best of my limited abilities I figured out that I can view separate fields in a view, such as
views-view-field--foo--field-bar.tpl.php
But I need a template to tell where these templates go
I took a look at views-view-fields.tpl.php but there doesn't seem to be a way to edit single fields. Am I doing this the wrong way?