@payloadcms/plugin-nested-docs
Nest documents in hierarchies with automatic breadcrumb generation and cascading updates.
Overview
Adds a parent field onto documents that attaches them to a parent's tree hierarchy. Documents also receive a breadcrumbs field auto-populated based on each ancestor up the tree. Changes cascade down the entire tree--if a parent's slug changes or the tree is restructured, all descendant breadcrumbs update automatically. Supports custom field extensions via createParentField and createBreadcrumbField methods, localization by default, and custom fullTitle generation for search and filter purposes.