Scaffolds white-labeled OD Labs website or plugin projects
Page Types
Restricts blocks and page hierarchy by page type, with one root page per type
Installation
pnpm add @od-labs/payload-pagetypes About
Page Types lets a Payload site define a fixed set of top-level page types, such as services or legal. Child pages inherit their type from the root above them. Each type gets exactly one root, which cannot be deleted while pages depend on it.
Blocks can be limited to certain page types, so a hero block only appears on service pages. The admin panel hides blocks that are not allowed, and saves fail if a restricted one slips through. A dashboard widget flags missing or duplicate roots.
It works with a single pages collection and needs the nested docs plugin for parent relationships.
Package info
- Package name
@od-labs/payload-pagetypes- Latest version
1.0.3- Unpacked size
- 197 kB
- License
- MIT
- Weekly downloads
- 4
- Last publish
- Apr 30, 2026
More from ZNAXNOR
View profileLets editors insert reusable field values as badges inside Lexical rich text
Similar plugins
More in ContentAdds question-based conditions that decide which pages a visitor sees
Opens nested blocks and array rows in stacked panels with breadcrumb navigation
Click-to-edit overlays on the frontend that open the matching field in the admin
Inline editing on your live website for Payload content, with reviewed drafts
Visual drag-and-drop page builder for Payload collections with live canvas editing
Adds a parent field and breadcrumbs to collections so documents can nest inside each other