How to use rendered file entity in view header as background image for view I would like to set a background image on a div in my views-view.tpl.php using the image from a rendered entity field in the View Header.

Something like:

   &lt;div class="group-header" style="background-image:;"&gt;
    &lt;div class="group-heading container"&gt;
      &lt;?php print render($title_prefix); ?&gt;
      &lt;?php if ($title): ?&gt;
        &lt;div class="page-title"&gt;
          &lt;h1 class="l-view-title"&gt;&lt;?php print t($title)?&gt;&lt;/h1&gt;
        &lt;/div&gt;
      &lt;?php endif; ?&gt;
      &lt;?php print render($title_suffix); ?&gt;  

      &lt;?php if ($header): ?&gt;
        &lt;?php print $header; ?&gt;
      &lt;?php endif; ?&gt;
    &lt;/div&gt;        
  &lt;/div&gt;


How do I print just the url of the entity from the header? It would be great if I could pull the image URL and add an inline style on the group-header div. Any ideas on how to accomplish this?

Similar to this question: Use image from view as background image of div in page.tpl.php
Is there something the Background Images Formatter module can do for you?

The module allows you to set a background to any CSS selector(s) you can think of. Combine it with a selector built with NID-token (NID field in Views, excluded from display, and its token used in the selector you assign the background-image to), and it will probably save you some templating headaches.