Programmatically set custom order (reorder) in orderable collection via Local/REST API #15088
Unanswered
thisanimus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Payload, I see that custom ordering within a collection is accomplished via fractional indexing. This order is typically changed via drag and drop, but I find I need to set the initial custom order programmatically once.
Questions:
Is there a way to set the fractional index based on a legacy field (number) I previously used to manage ordering?
On collection item creation or update via REST or Local API, is there a way to define the order?
Beta Was this translation helpful? Give feedback.
All reactions