| 1 |
// $Id$ |
// $Id: README.txt,v 1.1 2008/10/15 10:04:25 marktheunissen Exp $ |
| 2 |
|
|
| 3 |
Slider module creates a scrollable jQuery node display effect called the "coda slider", which was made famous by the site: |
Slider module creates a scrollable jQuery node display effect called the "coda slider", which was made famous by the site: |
| 4 |
|
|
| 7 |
Each panel of the Slider is an individual node. You can have any node you like appear inside a slider. |
Each panel of the Slider is an individual node. You can have any node you like appear inside a slider. |
| 8 |
|
|
| 9 |
Usage |
Usage |
| 10 |
---------- |
--------------------- |
| 11 |
|
|
| 12 |
This module depends on CCK (Content Creation Kit). A "slider" is actually a node type of your choice with a nodereference field called "field_slider_content". So before you can start using Slider, you need to install CCK module and choose a node type that will have the "field_slider_content" field. Add the field as a nodereference type, with "Multiple values" ticked so that you can have multiple panels in your slider! |
This module depends on CCK (Content Creation Kit). A "slider" is actually a node type of your choice with a nodereference field called "field_slider_content". So before you can start using Slider, you need to install CCK module and choose a node type that will have the "field_slider_content" field. Add the field as a nodereference type, with "Multiple values" ticked so that you can have multiple panels in your slider! |
| 13 |
|
|
| 21 |
|
|
| 22 |
If you need to change the width and height or any other properties of the slider, you can do so in your theme's CSS file (overriding the styles in this module's css/slider.css). |
If you need to change the width and height or any other properties of the slider, you can do so in your theme's CSS file (overriding the styles in this module's css/slider.css). |
| 23 |
|
|
| 24 |
|
Ordering your slides |
| 25 |
|
--------------------- |
| 26 |
|
|
| 27 |
|
To order your nodes, you'll need to create the list of nodes in Views. However, you'll have a LOT of nodes to choose from, so you'll need to find a way to filter out the nodes that are intended to be on your slider. |
| 28 |
|
|
| 29 |
|
Create a new node type, a "Slider Panel", and make it just like a page. You'll need to add one CCK field, an integer field, that will be your "Panel Order". |
| 30 |
|
|
| 31 |
|
Create a few pages of content with your "Slider Panel" node type. In the "Panel Order" field of each node, set a number to define the node's order in the slider. 1 will be first, 99 will be last. |
| 32 |
|
|
| 33 |
|
Now, create a view: |
| 34 |
|
Under Fields add Node ID and Node Title. |
| 35 |
|
Under Sort Criteria add your CCK Panel Order (the integer field) and sort Ascending. |
| 36 |
|
Under Filters add Node Type and select your Slider Panel Node Type. |
| 37 |
|
Save the view & you're almost done. |
| 38 |
|
|
| 39 |
|
Now, go and edit the Content Type of your Slider (the one that actually creates the slider). (It should be somewhere like admin/content/node-type/XXXX where XXXX is your node type). Right down the bottom, you'll see "Advanced - Nodes that can be referenced (View)", click and expand it, then select the view that you just created. |
| 40 |
|
|
| 41 |
|
Finally, go and create a new node with the Node Type you just edited. You should be able to select the nodes from your view - and they'll be in order! |
| 42 |
|
|
| 43 |
Credits |
Credits |
| 44 |
----------- |
--------------------- |
| 45 |
|
|
| 46 |
This module was written by Mark Theunissen for Digital People Online, a London based Digital Agency that specialises in Drupal development. |
This module was written by Mark Theunissen for Digital People Online, a London based Digital Agency that specialises in Drupal development. |
| 47 |
|
|