I have created a content-type called background with an image field.

I can easily generate a views output to display a list of the background content-type sorted by date posted. I can even display only the most recent image in a block.

I am trying to display this most recent image as the page background and I am stuck.

Right now I am accomplishing this by using my theme CSS:

#page {
  background-image: url('../image/background1.jpg');
}

How would I go about use the result of views to change the path/filename in the css?

Comments

kars-t’s picture

Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.