Adds a pages collection to Payload with a required title and a page type selector that shows one conditional field group per type. Page types are configured through the plugin options, with optional factories for standard rich-text content and flexible block layouts. Drafts, versions and autosave are enabled by default, and an overrides callback can modify the final collection. It targets Payload 4.
PayloadCMS pages plugin.
Installation
npm i @sittari/payload-pages0
Stars
0
Forks
0
Open Issues
2 months ago
Last Updated
31
Weekly Downloads
v2.1.0
npm Version
25.1 KB
Unpacked Size
0
Dependencies
00 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 0 |
| Dec 4, 2026 | 0 |
| Dec 3, 2026 | 0 |
| Dec 2, 2026 | 0 |
| Dec 1, 2026 | 0 |
| Nov 30, 2026 | 0 |
| Nov 29, 2026 | 0 |
| Nov 28, 2026 | 0 |
| Nov 27, 2026 | 0 |
| Nov 26, 2026 | 0 |
| Nov 25, 2026 | 0 |
| Nov 24, 2026 | 0 |
| Nov 23, 2026 | 0 |
| Nov 22, 2026 | 0 |
| Nov 21, 2026 | 0 |
| Nov 20, 2026 | 0 |
| Nov 19, 2026 | 0 |
| Nov 18, 2026 | 0 |
| Nov 17, 2026 | 0 |
| Nov 16, 2026 | 0 |
| Nov 15, 2026 | 0 |
| Nov 14, 2026 | 0 |
| Nov 13, 2026 | 0 |
| Nov 12, 2026 | 0 |
| Nov 11, 2026 | 0 |
| Nov 10, 2026 | 0 |
| Nov 9, 2026 | 0 |
| Nov 8, 2026 | 0 |
| Nov 7, 2026 | 0 |
| Nov 6, 2026 | 0 |
| Nov 5, 2026 | 0 |
| Nov 4, 2026 | 0 |
| Nov 3, 2026 | 0 |
| Nov 2, 2026 | 0 |
| Nov 1, 2026 | 0 |
| Oct 31, 2026 | 0 |
| Oct 30, 2026 | 0 |
| Oct 29, 2026 | 0 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 0 |
| Oct 25, 2026 | 0 |
| Oct 24, 2026 | 0 |
| Oct 23, 2026 | 0 |
| Oct 22, 2026 | 0 |
| Oct 21, 2026 | 0 |
| Oct 20, 2026 | 0 |
| Oct 19, 2026 | 0 |
| Oct 18, 2026 | 0 |
| Oct 17, 2026 | 0 |
| Oct 16, 2026 | 0 |
| Oct 15, 2026 | 0 |
| Oct 14, 2026 | 0 |
| Oct 13, 2026 | 0 |
| Oct 12, 2026 | 0 |
| Oct 11, 2026 | 0 |
| Oct 10, 2026 | 0 |
| Oct 9, 2026 | 0 |
| Oct 8, 2026 | 0 |
| Oct 7, 2026 | 0 |
| Oct 6, 2026 | 0 |
| Oct 5, 2026 | 0 |
| Oct 4, 2026 | 0 |
| Oct 3, 2026 | 0 |
| Oct 2, 2026 | 0 |
| Oct 1, 2026 | 0 |
| Sep 30, 2026 | 0 |
| Sep 29, 2026 | 0 |
| Sep 28, 2026 | 0 |
| Sep 27, 2026 | 0 |
| Sep 26, 2026 | 0 |
| Sep 25, 2026 | 0 |
| Sep 24, 2026 | 0 |
| Sep 23, 2026 | 0 |
| Sep 22, 2026 | 0 |
| Sep 21, 2026 | 0 |
| Sep 20, 2026 | 0 |
| Sep 19, 2026 | 0 |
| Sep 18, 2026 | 0 |
| Sep 17, 2026 | 0 |
| Sep 16, 2026 | 0 |
| Sep 15, 2026 | 0 |
| Sep 14, 2026 | 0 |
| Sep 13, 2026 | 0 |
| Sep 12, 2026 | 0 |
| Sep 11, 2026 | 0 |
| Sep 10, 2026 | 0 |
| Sep 9, 2026 | 0 |
| Sep 8, 2026 | 0 |
| Sep 7, 2026 | 0 |
| Sep 6, 2026 | 0 |
Shared by 8 plugins in sittari-studio/payload-plugins.
14−30 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 14 |
| Dec 4, 2026 | 15 |
| Dec 3, 2026 | 15 |
| Dec 2, 2026 | 13 |
| Dec 1, 2026 | 13 |
| Nov 30, 2026 | 13 |
| Nov 29, 2026 | 13 |
| Nov 28, 2026 | 12 |
| Nov 27, 2026 | 12 |
| Nov 26, 2026 | 12 |
| Nov 25, 2026 | 4 |
| Nov 24, 2026 | 3 |
| Nov 23, 2026 | 3 |
| Nov 22, 2026 | 4 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 16 |
| Nov 19, 2026 | 18 |
| Nov 18, 2026 | 25 |
| Nov 17, 2026 | 25 |
| Nov 16, 2026 | 25 |
| Nov 15, 2026 | 24 |
| Nov 14, 2026 | 24 |
| Nov 13, 2026 | 12 |
| Nov 12, 2026 | 11 |
| Nov 11, 2026 | 3 |
| Nov 10, 2026 | 11 |
| Nov 9, 2026 | 21 |
| Nov 8, 2026 | 23 |
| Nov 7, 2026 | 23 |
| Nov 6, 2026 | 23 |
| Nov 5, 2026 | 23 |
| Nov 4, 2026 | 27 |
| Nov 3, 2026 | 21 |
| Nov 2, 2026 | 11 |
| Nov 1, 2026 | 8 |
| Oct 31, 2026 | 8 |
| Oct 30, 2026 | 7 |
| Oct 29, 2026 | 6 |
| Oct 28, 2026 | 2 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 1 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 7 |
| Oct 23, 2026 | 7 |
| Oct 22, 2026 | 11 |
| Oct 21, 2026 | 11 |
| Oct 20, 2026 | 17 |
| Oct 19, 2026 | 16 |
| Oct 18, 2026 | 14 |
| Oct 17, 2026 | 14 |
| Oct 16, 2026 | 15 |
| Oct 15, 2026 | 16 |
| Oct 14, 2026 | 16 |
| Oct 13, 2026 | 10 |
| Oct 12, 2026 | 18 |
| Oct 11, 2026 | 20 |
| Oct 10, 2026 | 17 |
| Oct 9, 2026 | 17 |
| Oct 8, 2026 | 14 |
| Oct 7, 2026 | 14 |
| Oct 6, 2026 | 26 |
| Oct 5, 2026 | 18 |
| Oct 4, 2026 | 20 |
| Oct 3, 2026 | 19 |
| Oct 2, 2026 | 20 |
| Oct 1, 2026 | 18 |
| Sep 30, 2026 | 23 |
| Sep 29, 2026 | 13 |
| Sep 28, 2026 | 27 |
| Sep 27, 2026 | 24 |
| Sep 26, 2026 | 30 |
| Sep 25, 2026 | 31 |
| Sep 24, 2026 | 42 |
| Sep 23, 2026 | 48 |
| Sep 22, 2026 | 55 |
| Sep 21, 2026 | 82 |
| Sep 20, 2026 | 232 |
| Sep 19, 2026 | 226 |
| Sep 18, 2026 | 226 |
| Sep 17, 2026 | 221 |
| Sep 16, 2026 | 221 |
| Sep 15, 2026 | 213 |
| Sep 14, 2026 | 172 |
| Sep 13, 2026 | 25 |
| Sep 12, 2026 | 25 |
| Sep 11, 2026 | 31 |
| Sep 10, 2026 | 34 |
| Sep 9, 2026 | 30 |
| Sep 8, 2026 | 42 |
| Sep 7, 2026 | 44 |
| Sep 6, 2026 | 44 |
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/1294311885-pages)<a href="https://payloaddirectory.dev/plugins/1294311885-pages"><img src="https://payloaddirectory.dev/badge/1294311885-pages.svg" alt="Payload Directory"></a>README
A Payload CMS plugin that adds a versioned pages collection with configurable page types, localized fields, drafts, and autosave.
pnpm add @sittari/payload-pages
import { buildConfig } from 'payload';
import {
createFlexiblePageType,
createStandardContentPageType,
pagesPlugin,
} from '@sittari/payload-pages';
export default buildConfig({
plugins: [
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType(),
flexible: createFlexiblePageType({
blockSlugs: ['hero', 'content'],
}),
},
}),
],
collections: [],
});
pageTypes is required unless the plugin is disabled.
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Set to false to return the incoming Payload config unchanged. |
localizeTitle | boolean | true | Enables or disables localization on the default title field. |
pageTypes | PageTypes | Required | Page-type definitions keyed by the value stored in pageType. |
overrides | (defaultCollection) => CollectionConfig | Default collection | Extends or replaces the final pages collection configuration. Applied last. |
The package root exports createStandardContentPageType and createFlexiblePageType. Their option types and the PagesPluginConfig, PageTypeConfig, and PageTypes types are also available from the package root and from @sittari/payload-pages/types.
pagesPlugin does not create a slug or path field. Use @sittari/payload-permalink after pagesPlugin when the collection needs WordPress-style slugs and permalinks:
import { permalinkPlugin } from '@sittari/payload-permalink';
plugins: [
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType(),
},
}),
permalinkPlugin({
siteUrl: 'https://example.com',
collections: {
pages: { prefix: '' },
},
}),
];
pagesPlugin({
enabled: false,
});
When disabled, the plugin does not add the pages collection.
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType(),
flexible: createFlexiblePageType({
blockSlugs: ['hero', 'content', 'gallery'],
}),
blogIndex: {
label: 'Blog Index',
fields: [{ name: 'heading', type: 'text' }],
},
},
});
The object key becomes the stored value and group-field name. Its label is used in the page-type selector. The first entry is the default selection.
The built-in factories are optional. Include either, both, or neither of them.
The default title is localized. Disable localization when the Payload project does not use localized page titles:
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType(),
},
localizeTitle: false,
});
Factory options shallowly replace the generated page-type properties. This keeps array replacement explicit and avoids deep-merge behavior:
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType({
label: 'Article',
fields: [
{
name: 'content',
type: 'richText',
localized: false,
editor: customEditor,
},
],
}),
},
});
The flexible factory accepts blockSlugs, which become blockReferences on its blocks field:
createFlexiblePageType({
blockSlugs: ['hero', 'content', 'gallery'],
});
overrides runs after page types and all default fields have been assembled. Use it for access control, hooks, admin settings, versions, or additional fields:
pagesPlugin({
pageTypes: {
standardContent: createStandardContentPageType(),
},
overrides: (defaultCollection) => ({
...defaultCollection,
admin: {
...defaultCollection.admin,
defaultColumns: ['title', 'pageType', '_status', 'updatedAt'],
},
fields: [
...defaultCollection.fields,
{
name: 'internalName',
type: 'text',
},
],
}),
});
The callback must return a complete Payload CollectionConfig. Spread defaultCollection and nested properties you want to preserve when making partial changes.
The generated collection has:
pagestitle as the admin display titletitle field, localized by defaultpageType select followed by one conditional group per page typecreateStandardContentPageType() creates a localized content rich-text field.createFlexiblePageType() creates a blocks field and accepts a blockSlugs option.The plugin does not add these types automatically. Payload localization must be configured in the consuming project when using the standard-content factory's localized field.
payload better editor
Side-by-side live-preview iframe with a sidebar for editing individual blocks in the Payload edit view
781.2k/wk119v3
payload plugin comments
Inline comment threads on Lexical rich text with a sidebar panel, in English and French
589/wk0v3
payload better preview
Live preview with block hover highlighting and two-way scroll sync between the Payload admin and the preview
4846/wk16v3
payload lexical collaboration
Inline threaded comments on text selections in the Payload Lexical rich text editor
3175/wk13v3
payload preview click
Click a block or field in Payload live preview to jump to it in the edit form
6913/wk0v3
richtext
Rich-text child block, default Lexical editor preset and JSX renderer for Atomic Payload
6433/wk37v3