Skip to content
Snippets Groups Projects
Forked from project / weight
1 commit behind, 5 commits ahead of the upstream repository.

Weight

Weight module provides a weight field that can be added to any fieldable entity. The weight field can be used to provide customized sorting.

For a full description of the module, visit : Project Page.

Submit bug reports and feature suggestions, or track changes visit : Issue Queue.

Table of contents

  • Requirements
  • Installation
  • Configuration
  • How to use (example)
  • Maintainers

Requirements

This module requires no modules outside of Drupal core.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

Range: The range is set when adding a weight field to an entity. It defines that fields available weight range.

For example, a range of 20 will allow you to select a weight between -20 and 20.

How to use (example)

Now the weight field is available to be used in any entity. So just as example, you can add the "weight" field in a content type:

  • Access: "Structure" » "Content types" » » "Manage fields"
  • Go to "Add field" and select "General" » "Weight"
  • Put a label and save.
  • Now you can select a "Range" value that will be range of weights available to select. For example, a range of 20 will allow you to select a weight between -20 and 20.
  • Save.
  • Now you can add a node using this content type:
  • Go to "Content" » "Add content" »
  • Now you can see the "weight" and the range to select

Maintainers