How to alter default weight value?

Created on 29 July 2021, almost 3 years ago
Updated 28 May 2024, about 1 month ago

Problem/Motivation

Hi all,

I saw in "draggableviews.install" file that the default value for weight is 0.
For some reasons, I would like to know if it is possible to alter (via a hook) this default weight for a specific view (e.g.: 100).

I looked at the documentation and the code but didn't see anything for that.
Thank you for your help!

Steps to reproduce

  1. Create a view for sorting a specific content type (e.g. Events)
  2. Add "Draggableviews: DraggableViews Weight (asc)" as "Sort criteria"
  3. Create a new Event node
  4. Weight of this content is 0 and it's placed at the top of the listing
πŸ’¬ Support request
Status

Closed: outdated

Version

1.2

Component

Code

Created by

πŸ‡±πŸ‡ΊLuxembourg pski

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 nicxvan

    The 8.1.x branch is no longer supported, if this is still an issue on 2.x please reopen this issue and change the version to 2.1.x-dev

Production build 0.69.0 2024