Tricksy background image thing

So on our current site, each section has a “background” image; it’s an actual img tag, but it looks background-y.

I’m using Taxonomy to set the site sections, incorporated with Workbench Access. Generally speaking, we don’t want our editors to update this image themselves. (boy howdy no.) So the image is a field on the Taxonomy itself.

To get the right image on the right sections, I’m using a View to tie things together.

  1. The view is a block of content with fields.
  2. To display the actual image, you have to set up a Relationship to the correct taxonomy vocabulary. Then add the image field to the view and delete the Title or any other fields.
  3. To display the right image, you also have to add a Contextual Filter, Content Nid with the default value of Content from URL.

Then it just works. ๐Ÿ™‚