Commit 8e064ef2 authored by davisben's avatar davisben

added README.txt

parent 6ba70e85
Overview
--------
This module provides a weight field for enabled content types. The default
frontpage is overridden to sort nodes first by sticky, then weight, then created
date. Nodes with a lower weight will be positiioned before those with higher
weights.
Installation
------------
This module can be installed by following the instructions at
http://drupal.org/node/70151.
Configuration
-------------
To enable Weight for a content type, go to Administration > Structure > Content
types and select the content type you want to enable Weight for. Select the Weight
vertical tab, choose your desired settings, and click the Save button.
Set a node weight
-----------------
To set the weight for a node, go to that node's edit page, select the Weight
vertical tab, and choose the desired weight. If the content type is set to use
menu weight, the weight selector will be disabled.
Views
-----
Weight includes a default view that provides a drag-and-drop interface for
reordering nodes. Ggo to Administration > Structure > Views, locate the disabled
Weight view, and click enable. This view can now be edited as normal to fit your
needs.
Node weights can also be used in new or existing views as Filters, Sorts, or
Arguments.
......@@ -252,7 +252,6 @@ function weight_field_widget_form(&$form, &$form_state, $field, $instance, $lang
$element['#default_value'] = isset($items[0]) ? $items[0] : 0;
}
return $element;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment