Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Node Weights

867 sites Security covered
View on drupal.org

The Node Weight module adds a configurable weight field to content types, allowing administrators to define a custom order for nodes. This order can then be used for sorting content in views or custom queries, and weights can be managed on node forms or through a table-drag interface.

Node Weight module provides a weight field that can be added to any content type. The weight field can then be used to provide customized sorting via views or custom query.

Requirements

This module requires no modules outside of Drupal core.

Install

Install the Node Weight module as you would normally install a contributed Drupal module.

Visit https://www.drupal.org/node/1897420 for further information.

Can also be installed via composer:

composer require drupal/node_weight
drush en node_weight

Features

  • Configure/enable node weights for certain content types.
  • Table-drag interface to manage node ordering.
  • Node weight can also be updated on node add/edit forms.
  • Supports translatable node weight field. Store weight per node translation.
  • Leverages Batch API to update node weights.

Configuration

  1. Navigate to Administration > Extend and enable the Node Weight module.
  2. Navigate to Structure > Node Weights.
  3. Enable Node Weight for chosen node types.
  4. Navigate to Structure > Node Weights > Content Type
  5. Arrange nodes in desired order.
  6. Save changes.
  7. Use field_node_weight in Views Sort Criteria or any other entities to sort content.

It is also possible to set weight on content edit form using the node weight field.

Activity

Total releases
3
First release
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
3.0.0 Stable Apr 25, 2025
3.x-dev Dev Apr 25, 2025
8.x-2.7 Stable Apr 25, 2025