I am new to drupal and I am wondering how to gain more control over a view block. Currently I am embedding my view block in my page by doing :
<?php print views_embed_view('news_overview', $display_id = 'block'); ?>
This works but if I want to style this further I have to go into my view and format it as content and add the html templating there which leaves me with a bit less control than I want.
I made a views-view--block.tpl.php file to try and style my view block a bit more but I am left wondering how to render single view fields here.
I tried doing this to for example render a body field:
<?php foreach($view->result as $object): ?> <?php print render($object->_field_data['nid']['entity']->body['und']['value']); ?> <?php endforeach; ?>
Ofcourse doing this for each field is a hassle and I was wondering if there is an easier way to output view fields inside my views-view--block.tpl.php template.