Weights are zero in other Views Display

Created on 9 July 2022, over 2 years ago
Updated 13 June 2023, almost 2 years ago

Problem/Motivation

Sorting by draggable views is not working, either in custom view or demo provided with 2.0.1

Steps to reproduce

- Follow version 2 instructions
- Change order of demo content
- See that order was not changed accordingly on demo display page
- If you add the weight field to the display page view, all values are set to 0 instead of set weight from order page

Running Drupal 9.4.2 with Boostrap 8.x-3.25

Thank you!

πŸ› Bug report
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States meltonml

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States jcandan

    I am experiencing this with the latest release of 2.1.3.

    I have a View with 2 displays. One with the DraggableViews Flagging field for drag-n-drop sort. And another for displaying the items. Both are sorted by the DraggableViews Weight. The DraggableViews Weight field is displayed on both.

    In the sortable Views Display, the Weights are correctly affected by sort changes and saves.

    But the View Display without the sort feature shows all DraggableViews Weight values as 0. Obviously, the sort order is incorrect as a result.

  • Status changed to Closed: works as designed almost 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States jcandan

    Got it.

    Saw the following in the README:

    Click 'Draggableviews: Weight (asc)' under 'SORT CRITERIA'
    You should see:
    Display sort as:
    <title of view> (<display title>)

    I went and looked at the DraggableViews Weight sort criteria item, and found the field described (though worded differently). Changed the value to the Views Display where the sort occurs.

    And now the other Views Display is sorted correctly and the Weight values shown are also correct.

Production build 0.71.5 2024