| 1 |
*******************************************************
|
| 2 |
README.txt for weight.module for Drupal
|
| 3 |
by Jeff Robbins ::: jeff /@t\ jjeff /d0t\ com
|
| 4 |
maintained by harry slaughter <harry@devbee.com>
|
| 5 |
*******************************************************
|
| 6 |
|
| 7 |
This module adds a weight option to enabled node types. It uses the node
|
| 8 |
table's 'sticky' column to store weights as well as sticky information (so
|
| 9 |
that feature is not lost). Nodes with lower weight will float to the top of
|
| 10 |
lists, while heavier items will sink.
|
| 11 |
|
| 12 |
This is useful for sorting non-cronological nodes like bios or ecommerce
|
| 13 |
products.
|
| 14 |
|
| 15 |
Nodes will be sorted first by stickiness, then by weight, then by creation
|
| 16 |
date.
|
| 17 |
|
| 18 |
TO CREATE AN ORDERABLE VIEW (Admins can reweight nodes using drag-and-drop):
|
| 19 |
|
| 20 |
* Create a view as normal with a "page" display
|
| 21 |
* Change the view style to "weight changer"
|
| 22 |
* Include Field Weight (though not as the first field you include).
|
| 23 |
* Sort by Weight DESC.
|
| 24 |
* Ensure only appropriate roles have access to the view.
|
| 25 |
* Load up the view, reorder, and save!
|