- Issue created by @drupal_android
- Merge request !12Edit node_weight.settings.yml - Changes done in the min and min and max weight... → (Open) created by Unnamed author
There is a mismatch in the weight range allowed between the Manage Order screen and the Node weight field on the node edit form.
When an admin reorders nodes using the Manage Order screen (/admin/structure/types/manage/[content-type]/weight), the system assigns weights in the range –100 to 100 by default. These weight values are stored in the node_weight field.
However, in the node edit form, the node_weight field only allows a range of –10 to 10 (as defined in the default configuration). If a node has a weight outside this range (e.g., –100), the user is either forced to change it or is prevented from saving the node, depending on the widget used.
This causes confusion and can result in unexpected reordering behavior.
Problem 1: Using the "Weight selector" widget
(Widget configured under Manage form display)
Problem 2: Using the "Number" widget
Update the default weight range in the node_weight.settings.yml configuration file:
min_weight: -100
max_weight: 100
Alternatively, provide a UI under the module configuration screen to allow admins to set custom min/max values for the node weight field.
Active
3.0
Code