Adds drag and drop re-ordering of documents in the list view for collections you choose. The order is stored in a docOrder field that you can sort by through the REST, Local and GraphQL APIs. Access to the save endpoint is configurable, and a setup script is provided for collections that already contain documents. Built for Payload 3.0 beta.
Plugin that adds an option to re-order collection documents with drag n drop
Installation
npm i monorepo18
Stars
0
Forks
0
Open Issues
2 years ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
180 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 18 |
| Dec 5, 2026 | 18 |
| Dec 4, 2026 | 18 |
| Dec 3, 2026 | 18 |
| Dec 2, 2026 | 18 |
| Dec 1, 2026 | 18 |
| Nov 30, 2026 | 18 |
| Nov 29, 2026 | 18 |
| Nov 28, 2026 | 18 |
| Nov 27, 2026 | 18 |
| Nov 26, 2026 | 18 |
| Nov 25, 2026 | 18 |
| Nov 24, 2026 | 18 |
| Nov 23, 2026 | 18 |
| Nov 22, 2026 | 18 |
| Nov 21, 2026 | 18 |
| Nov 20, 2026 | 18 |
| Nov 19, 2026 | 18 |
| Nov 18, 2026 | 18 |
| Nov 17, 2026 | 18 |
| Nov 16, 2026 | 18 |
| Nov 15, 2026 | 18 |
| Nov 14, 2026 | 18 |
| Nov 13, 2026 | 18 |
| Nov 12, 2026 | 18 |
| Nov 11, 2026 | 18 |
| Nov 10, 2026 | 18 |
| Nov 9, 2026 | 18 |
| Nov 8, 2026 | 18 |
| Nov 7, 2026 | 18 |
| Nov 6, 2026 | 18 |
| Nov 5, 2026 | 18 |
| Nov 4, 2026 | 18 |
| Nov 3, 2026 | 18 |
| Nov 2, 2026 | 18 |
| Nov 1, 2026 | 18 |
| Oct 31, 2026 | 18 |
| Oct 30, 2026 | 18 |
| Oct 29, 2026 | 18 |
| Oct 28, 2026 | 18 |
| Oct 27, 2026 | 18 |
| Oct 26, 2026 | 18 |
| Oct 25, 2026 | 18 |
| Oct 24, 2026 | 18 |
| Oct 23, 2026 | 18 |
| Oct 22, 2026 | 18 |
| Oct 21, 2026 | 18 |
| Oct 20, 2026 | 18 |
| Oct 19, 2026 | 18 |
| Oct 18, 2026 | 18 |
| Oct 17, 2026 | 18 |
| Oct 16, 2026 | 18 |
| Oct 15, 2026 | 18 |
| Oct 14, 2026 | 18 |
| Oct 13, 2026 | 18 |
| Oct 12, 2026 | 18 |
| Oct 11, 2026 | 18 |
| Oct 10, 2026 | 18 |
| Oct 9, 2026 | 18 |
| Oct 8, 2026 | 18 |
| Oct 7, 2026 | 18 |
| Oct 6, 2026 | 18 |
| Oct 5, 2026 | 18 |
| Oct 4, 2026 | 18 |
| Oct 3, 2026 | 18 |
| Oct 2, 2026 | 18 |
| Oct 1, 2026 | 18 |
| Sep 30, 2026 | 18 |
| Sep 29, 2026 | 18 |
| Sep 28, 2026 | 18 |
| Sep 27, 2026 | 18 |
| Sep 26, 2026 | 18 |
| Sep 25, 2026 | 18 |
| Sep 24, 2026 | 18 |
| Sep 23, 2026 | 18 |
| Sep 22, 2026 | 18 |
| Sep 21, 2026 | 18 |
| Sep 20, 2026 | 18 |
| Sep 19, 2026 | 18 |
| Sep 18, 2026 | 18 |
| Sep 17, 2026 | 18 |
| Sep 16, 2026 | 18 |
| Sep 15, 2026 | 18 |
| Sep 14, 2026 | 18 |
| Sep 13, 2026 | 18 |
| Sep 12, 2026 | 18 |
| Sep 11, 2026 | 18 |
| Sep 10, 2026 | 18 |
| Sep 9, 2026 | 18 |
| Sep 8, 2026 | 18 |
| Sep 7, 2026 | 18 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/759677117-root)<a href="https://payloaddirectory.dev/plugins/759677117-root"><img src="https://payloaddirectory.dev/badge/759677117-root.svg" alt="Payload Directory"></a>README
This repository for 3.0 is deprecated and has been moved to https://github.com/r1tsuu/payload-enchants in order to keep all of my payload-related packages in 1 place. 2.0 branch
Adds an option to re-order collection documents with drag n drop (almost like array/blocks items). Then on your front end you can query documents with applied sort by docOrder field.
pnpm add @r1tsu/[email protected]
In your payload.config.ts:
/// ....
import { collectionsDocsOrderPlugin } from '@r1tsu/payload-plugin-collections-docs-order';
export default buildConfig({
// ...
plugins: [
collectionsDocsOrderPlugin({
collections: [{ slug: 'pages' }], // The feature will be enabled only for collections that are in this array.,
access: ({ req, data }) => {
// Optional, configure access for `saveChanges` endpoint, default: Boolean(req.user)
return req.user?.collection === 'admins';
},
}),
],
});
REST:
fetch('http://localhost:3000/api/examples?sort=docOrder').then((res) => res.json());
Local API:
payload.find({ collection: 'examples', sort: 'docOrder' });
GraphQL:
query {
Examples(sort: "docOrder") {
docs {
title
}
}
collections array with your needs. https://gist.github.com/r1tsuu/047008be9800dfcbe371247d10ee6794yarn ts-node --project ./tsconfig.server.json ./cli/pluginCollectionsDocsSetup.ts (It will run for a database that in your .env, also be sure to backup if this on production)docs reorder
Reorder collection documents by drag and drop and sort them by a docOrder field
50301/wk335v3
payload kanban board
Kanban board view for Payload collections with configurable status columns
38111/wk42v2
payload docs reorder
Drag-and-drop reordering of collection documents in the Payload admin, sorted by a docOrder field
3111/wk4v3
payload nested docs page tree
Page tree list view for nested docs collections with drag and drop, status badges and live or preview links
771.6k/wk35v3
payload plugin menu
Editor-friendly navigation menus with dropdowns, headings, icons and per-entry visibility
76126/wk0v3
payload nav studio
Replaces the Payload admin sidebar with a drag and drop navigation that each user can customize
66108/wk15v3