Slider
Slider module creates an effect called the "Coda slider", which was made famous by the site:
In this Drupal implementation, each panel of the slider is an individual node. You can have any node you like appear as slides within the slider.
Motivation
This module was originally created with the intention of displaying a fixed set of content. We use it in situations where a client has a few pages of static content that are related and form a slideshow.
Usage
- Create a new CCK type, called "slider" or whatever you prefer. This node type will be the parent, and you will create one for every slider on your site. It is not used as an individual slide in the slider. Any node type can become an individual slide.
- Add a nodereference field to the CCK type, called "field_slider_content" (you have to use this name).
- Make sure the field has "multiple values" ticked.
- Allow the nodereference field to reference whatever type of content you wish to appear as slides. If you want story nodes to appear in the slider, then make sure that "field_slider_content" can reference story nodes.
- On the slider settings page (admin/settings/slider), you will see a list of content types that have a field "field_slider_content". Tick those that you want to turn into sliders.
- Create a new slider node, and in the multi-select box, choose which individual nodes should appear as slides.
That's it. The module will automatically remove the field from the node display, and put a slider in it's place.
Customisation
There is a preprocess() function and template file for control over the HTML output. You can modify or override the included CSS or jQuery code, to change delays, size, etc.
Future plans
- The slides could come from a View or Nodequeue instead of a nodereference field. I don't require this functionality at the moment, but am happy to accept patches!
- At the moment, the jQuery plugins that are required are included in the module. I could use one of the many jQuery plugin managers instead.
Credit
The jQuery code in slider.js was created by Remy Sharp and is explained in detail on his blog at: http://jqueryfordesigners.com/coda-slider-effect/
The Slider module was sponsored by Digital People (http://www.digitalpeopleonline.com/)
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.2 | 2008-Dec-16 | 15.11 KB | Download · Release notes | Recommended for 6.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2008-Dec-17 | 15.12 KB | Download · Release notes | Development snapshot | |
