Views Template Field Rendering I have a view which is a block on a page and I want to style the view. I tried using the rewrite output however I ran into a problem with it removing the style="" tag. So I had to resort to a .tpl.php to modify the display as I please.

Currently I am using

$d = $view-&gt;result;

    // Loop through it
    foreach($d as $r) {
        // Get values
        $position = $r-&gt;_field_data['nid']['entity']-&gt;field_position['und']['0']['value'];

        $name = $r-&gt;_field_data['nid']['entity']-&gt;title;

        $image = file_create_url($r-&gt;_field_data['nid']['entity']-&gt;field_picture['und']['0']['uri']);

        $path = drupal_lookup_path('alias',"node/".$r-&gt;nid);

        print "&lt;div class='e'&gt;&lt;a href='/".$path."' class='colorbox-load'&gt;&lt;div class='tb' style='background-image:url(".$image.");'&gt;&lt;/div&gt;&lt;/a&gt;&lt;strong&gt;".$name."&lt;/strong&gt;&lt;span&gt;".$position."&lt;/span&gt;&lt;/div&gt;";
    }


And as you see this is extremely ugly and I am dependent on 'und' not changing... which it does.

Is there another way to get the view field data besides having to go through the array and find it? I tried render() and that didn't work. I also tried using entity_metadata_wrapper('node', $view); and that didn't work (the fields where not attached to the array).

I can't figure out how to do it without the hacking code... Help!
There did not appear to be any way to do this easier, so I did it manually/hacky.