Provides a createSlugField function that returns a ready-made slug field row for Payload collections. By default the field is required, localized, derives from the title field and appears in the sidebar. Options let you set the source field, localization, instruction text per locale, and an overrides callback to modify or replace the result. Targets Payload 4.
Configurable slug field factory for Payload CMS.
Installation
npm i @sittari/payload-slug-field0
Stars
0
Forks
0
Open Issues
2 months ago
Last Updated
20
Weekly Downloads
v0.4.1
npm Version
18.7 KB
Unpacked Size
2
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.
10−5 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 10 |
| Dec 4, 2026 | 12 |
| Dec 3, 2026 | 11 |
| Dec 2, 2026 | 4 |
| Dec 1, 2026 | 11 |
| Nov 30, 2026 | 12 |
| Nov 29, 2026 | 11 |
| Nov 28, 2026 | 10 |
| Nov 27, 2026 | 8 |
| Nov 26, 2026 | 8 |
| Nov 25, 2026 | 9 |
| Nov 24, 2026 | 2 |
| Nov 23, 2026 | 1 |
| Nov 22, 2026 | 4 |
| Nov 21, 2026 | 4 |
| Nov 20, 2026 | 9 |
| Nov 19, 2026 | 10 |
| Nov 18, 2026 | 13 |
| Nov 17, 2026 | 13 |
| Nov 16, 2026 | 13 |
| Nov 15, 2026 | 11 |
| Nov 14, 2026 | 12 |
| Nov 13, 2026 | 7 |
| Nov 12, 2026 | 7 |
| Nov 11, 2026 | 4 |
| Nov 10, 2026 | 9 |
| Nov 9, 2026 | 15 |
| Nov 8, 2026 | 14 |
| Nov 7, 2026 | 13 |
| Nov 6, 2026 | 13 |
| Nov 5, 2026 | 15 |
| Nov 4, 2026 | 18 |
| Nov 3, 2026 | 13 |
| Nov 2, 2026 | 7 |
| Nov 1, 2026 | 7 |
| Oct 31, 2026 | 7 |
| Oct 30, 2026 | 7 |
| Oct 29, 2026 | 4 |
| Oct 28, 2026 | 0 |
| Oct 27, 2026 | 0 |
| Oct 26, 2026 | 2 |
| Oct 25, 2026 | 3 |
| Oct 24, 2026 | 4 |
| Oct 23, 2026 | 4 |
| Oct 22, 2026 | 6 |
| Oct 21, 2026 | 12 |
| Oct 20, 2026 | 13 |
| Oct 19, 2026 | 12 |
| Oct 18, 2026 | 12 |
| Oct 17, 2026 | 11 |
| Oct 16, 2026 | 12 |
| Oct 15, 2026 | 13 |
| Oct 14, 2026 | 13 |
| Oct 13, 2026 | 12 |
| Oct 12, 2026 | 11 |
| Oct 11, 2026 | 11 |
| Oct 10, 2026 | 13 |
| Oct 9, 2026 | 14 |
| Oct 8, 2026 | 13 |
| Oct 7, 2026 | 7 |
| Oct 6, 2026 | 11 |
| Oct 5, 2026 | 11 |
| Oct 4, 2026 | 12 |
| Oct 3, 2026 | 11 |
| Oct 2, 2026 | 9 |
| Oct 1, 2026 | 7 |
| Sep 30, 2026 | 11 |
| Sep 29, 2026 | 8 |
| Sep 28, 2026 | 10 |
| Sep 27, 2026 | 11 |
| Sep 26, 2026 | 20 |
| Sep 25, 2026 | 25 |
| Sep 24, 2026 | 27 |
| Sep 23, 2026 | 34 |
| Sep 22, 2026 | 40 |
| Sep 21, 2026 | 71 |
| Sep 20, 2026 | 327 |
| Sep 19, 2026 | 317 |
| Sep 18, 2026 | 313 |
| Sep 17, 2026 | 314 |
| Sep 16, 2026 | 304 |
| Sep 15, 2026 | 298 |
| Sep 14, 2026 | 265 |
| Sep 13, 2026 | 12 |
| Sep 12, 2026 | 12 |
| Sep 11, 2026 | 15 |
| Sep 10, 2026 | 16 |
| Sep 9, 2026 | 16 |
| Sep 8, 2026 | 18 |
| Sep 7, 2026 | 18 |
| Sep 6, 2026 | 15 |
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-slug-field)<a href="https://payloaddirectory.dev/plugins/1294311885-slug-field"><img src="https://payloaddirectory.dev/badge/1294311885-slug-field.svg" alt="Payload Directory"></a>README
A reusable, configurable Payload slug-field factory.
pnpm add @sittari/payload-slug-field
import { createSlugField } from '@sittari/payload-slug-field';
export const Posts = {
slug: 'posts',
fields: [
{ name: 'title', type: 'text', required: true },
createSlugField({
instruction: {
en: 'The slug becomes part of the page URL.',
uk: 'Слаг стає частиною URL сторінки.',
},
}),
],
};
createSlugField() returns Payload's slug row. It is required, localized, uses title as its source, and appears in the sidebar by default. It adds no instruction text unless instruction is provided.
Use overrides to modify or replace the completed row:
createSlugField({
useAsSlug: 'name',
localized: false,
overrides: (defaultSlugField) => ({
...defaultSlugField,
admin: { ...defaultSlugField.admin, position: 'sidebar' },
}),
});
payload slug
Slug field with Auto/Manual modes, nested source paths, localization and enforced uniqueness
802.4k/wk0v3
localized slugs
Copies localized slug and full path values into a per-locale localizedSlugs field for multi-language Payload sites
7881/wk9v3
path
Stored, indexed URL paths for Payload 4 pages and posts built from a parent and a slug
75270/wk10v4
permalink
WordPress-style slugs, canonical paths and permalink lookup for selected Payload collections
6221/wk0v4
redirects
Manage internal and external redirects from the Payload admin panel
100200.1k/wk46.1kv3 v4
nested docs
Official plugin for nesting Payload documents inside one another
100151.9k/wk46.1kv3 v4