Paragraph items ordered by weight

Created on 3 July 2020, over 4 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

Hi everyone.
I've created a custom node type, "events", and a custom paragraph type, "time schedule". My event can have multiple time schedules, every one consisting of a date range, opening - closing time, weekday, and so on. Editing my event node, I'm able to order all timetables just by drag & drop, changing what I assume is a "weight" value ("delta"?). How can I order time schedule elements in events REST views based on this delta value?
I'll try to describe what I've done so far. I created a custom view for my time schedule, selecting "Provide a REST export"; I've also created in the same way a custom view for my events. In the events REST view, I added a global view field, referencing the time schedule REST view. Now if try to GET a specific event, with multiple time schedules in it, I can see all the paragraphs, but not in the order I specified editing my node (I think they are ordered by paragraph id).
I've tried to search for "delta" as order criteria in the time schedule REST view, but I cannot find it listed...
Am I missing something or doing something wrong? I'm quite new to Drupal and started working on an existing custom project. I'm opening this issue related to the REST module, but probably I haven't managed to fully understand where my problem resides.

💬 Support request
Status

Closed: works as designed

Component

Code

Created by

🇮🇹Italy a.serain

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.

Production build 0.71.5 2024