Download & Extend

Background Images

NOTE: As of January 21, 2012 (with the release of 7.x-1.0-beta1), the structure of Background Images has changed. Anyone updating from an older version will need to disable (but not uninstall) all bg_image modules before updating to the new version. Any contexts and settings that you had set before should remain intact through the process.

Background images is a collection of modules that allows users to add background images to html elements on pages of the site. Three module are included with the project:

Background Image (bg_image)

This is an api module that provides tools to add background images to html elements using the css "background" property. A basic settings page is supplied as well as functions to easily add the "background" property to the page.

An exisiting content type with an image or media field, can be used as the interface to manage the images, but is not required. Modules implementing bg_image can use their own interface for image uploads if they don't want to bother with nodes. bg_image_context and bg_image_ui (explained below) use nodes as the image managing interface.

Background Image Context (bg_image_context)

This module defines a new context reaction called "Background Image" which will let you add background images based on any criteria you can craft with context's conditions.

Background Image UI (bg_image_ui)

This module provides an interface to apply background images on specific pages.The background image paths administration page can be found at admin/content/background-images.

Here, you can pair up a path with a node. When that path is reached, the node's image field will be used to apply a css background image on the page (using the bg_image default css settings)

See each module's respective README file for more more in depth explanations

Other Notes

A basic understanding of CSS is expected to use this module effectively. The background images are added by creating a css statement that uses the css "background" property. You have the ability to control the css selector as well as all the sub-properties of the "background" property (background-color, background-image, background-repeat, background-attachment, background-position). You can also add !important to the property to override any other background images added by the theme. In the end all these settings are concatenated to form one statement:

selector {
  background: background-color background-image background-repeat background-attachment background-position;
}

This might look something like this:

body #wrapper {
  background: transparent url(http://example.com/sites/default/files/image.jpg) fixed no-repeat center center !important;
}

Version Information

The above is for Version 7.x only.

Version 6.x only provides the background image context reaction all rolled into the one bg_image module. It will probably remain like this for a while if not forever...

Development sponsored by: Fuse Interactive

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0 tar.gz (20.1 KB) | zip (25.35 KB) 2013-Apr-12 Notes
6.x-1.0 tar.gz (12.35 KB) | zip (13.89 KB) 2012-Jan-22 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (20.09 KB) | zip (25.35 KB) 2013-Apr-12 Notes
6.x-1.x-dev tar.gz (12.34 KB) | zip (13.88 KB) 2011-Dec-09 Notes

Project Information


Maintainers for Background Images

  • drclaw - 27 commits
    last: 5 weeks ago, first: 1 year ago

Issues for Background Images

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here