payload-plugin-tree-list
v0.0.2
Published
A plugin for Payload CMS that adds a collapsible Tree list view.
Downloads
117
Maintainers
Readme
Payload Tree List Plugin
A plugin for Payload CMS that adds a collapsible Tree list view. This plugin depends on the Payload Nested Docs Plugin for its parent implementation.
This plugin is compatible only with Payload CMS version 3.x.
Installation / How to use
Minimum required payload version: 3.x
Install the plugin using yarn add @payloadcms/plugin-nested-docs payload-plugin-tree-list
. Then, add the plugin to your Payload configuration file:
payload.config.ts:
import { buildConfig } from "payload";
import { nestedDocsPlugin } from "@payloadcms/plugin-nested-docs";
import { treeListPlugin } from "payload-plugin-tree-list";
export default buildConfig({
...
plugins: [
nestedDocsPlugin({ collections: ["posts"] }),
treeListPlugin({ collections: ["posts"] }),
],
...
});