Adds a generated title field to selected collections, computed by a function you define from the document data, request and user. The function can be asynchronous. The field name can be overridden globally or per collection. Existing documents need a manual update script to populate the title. Targets Payload 3.0 beta.
Installation
npm i @payload-enchants/better-use-as-title335
Stars
28
Forks
28
Open Issues
1 years ago
Last Updated
117
Weekly Downloads
v1.2.2
npm Version
15.4 KB
Unpacked Size
0
Dependencies
335+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 335 |
| Dec 5, 2026 | 335 |
| Dec 4, 2026 | 335 |
| Dec 3, 2026 | 335 |
| Dec 2, 2026 | 335 |
| Dec 1, 2026 | 335 |
| Nov 30, 2026 | 335 |
| Nov 29, 2026 | 335 |
| Nov 28, 2026 | 335 |
| Nov 27, 2026 | 335 |
| Nov 26, 2026 | 335 |
| Nov 25, 2026 | 335 |
| Nov 24, 2026 | 335 |
| Nov 23, 2026 | 335 |
| Nov 22, 2026 | 335 |
| Nov 21, 2026 | 335 |
| Nov 20, 2026 | 335 |
| Nov 19, 2026 | 336 |
| Nov 18, 2026 | 336 |
| Nov 17, 2026 | 335 |
| Nov 16, 2026 | 335 |
| Nov 15, 2026 | 335 |
| Nov 14, 2026 | 335 |
| Nov 13, 2026 | 335 |
| Nov 12, 2026 | 335 |
| Nov 11, 2026 | 335 |
| Nov 10, 2026 | 335 |
| Nov 9, 2026 | 335 |
| Nov 8, 2026 | 335 |
| Nov 7, 2026 | 335 |
| Nov 6, 2026 | 335 |
| Nov 5, 2026 | 335 |
| Nov 4, 2026 | 335 |
| Nov 3, 2026 | 335 |
| Nov 2, 2026 | 335 |
| Nov 1, 2026 | 335 |
| Oct 31, 2026 | 335 |
| Oct 30, 2026 | 335 |
| Oct 29, 2026 | 335 |
| Oct 28, 2026 | 335 |
| Oct 27, 2026 | 335 |
| Oct 26, 2026 | 335 |
| Oct 25, 2026 | 335 |
| Oct 24, 2026 | 334 |
| Oct 23, 2026 | 334 |
| Oct 22, 2026 | 334 |
| Oct 21, 2026 | 334 |
| Oct 20, 2026 | 334 |
| Oct 19, 2026 | 334 |
| Oct 18, 2026 | 334 |
| Oct 17, 2026 | 334 |
| Oct 16, 2026 | 334 |
| Oct 15, 2026 | 334 |
| Oct 14, 2026 | 334 |
| Oct 13, 2026 | 334 |
| Oct 12, 2026 | 334 |
| Oct 11, 2026 | 333 |
| Oct 10, 2026 | 333 |
| Oct 9, 2026 | 333 |
| Oct 8, 2026 | 333 |
| Oct 7, 2026 | 333 |
| Oct 6, 2026 | 333 |
| Oct 5, 2026 | 333 |
| Oct 4, 2026 | 333 |
| Oct 3, 2026 | 333 |
| Oct 2, 2026 | 333 |
| Oct 1, 2026 | 333 |
| Sep 30, 2026 | 333 |
| Sep 29, 2026 | 333 |
| Sep 28, 2026 | 333 |
| Sep 27, 2026 | 333 |
| Sep 26, 2026 | 333 |
| Sep 25, 2026 | 333 |
| Sep 24, 2026 | 333 |
| Sep 23, 2026 | 333 |
| Sep 22, 2026 | 333 |
| Sep 21, 2026 | 333 |
| Sep 20, 2026 | 333 |
| Sep 19, 2026 | 333 |
| Sep 18, 2026 | 333 |
| Sep 17, 2026 | 333 |
| Sep 16, 2026 | 333 |
| Sep 15, 2026 | 333 |
| Sep 14, 2026 | 333 |
| Sep 13, 2026 | 333 |
| Sep 12, 2026 | 333 |
| Sep 11, 2026 | 333 |
| Sep 10, 2026 | 333 |
| Sep 9, 2026 | 333 |
| Sep 8, 2026 | 333 |
| Sep 7, 2026 | 333 |
Shared by 7 plugins in r1tsuu/payload-enchants.
117−2.1K since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 117 |
| Dec 5, 2026 | 117 |
| Dec 4, 2026 | 47 |
| Dec 3, 2026 | 43 |
| Dec 2, 2026 | 8 |
| Dec 1, 2026 | 9 |
| Nov 30, 2026 | 8 |
| Nov 29, 2026 | 46 |
| Nov 28, 2026 | 52 |
| Nov 27, 2026 | 52 |
| Nov 26, 2026 | 73 |
| Nov 25, 2026 | 75 |
| Nov 24, 2026 | 73 |
| Nov 23, 2026 | 73 |
| Nov 22, 2026 | 37 |
| Nov 21, 2026 | 32 |
| Nov 20, 2026 | 83 |
| Nov 19, 2026 | 119 |
| Nov 18, 2026 | 124 |
| Nov 17, 2026 | 145 |
| Nov 16, 2026 | 164 |
| Nov 15, 2026 | 174 |
| Nov 14, 2026 | 188 |
| Nov 13, 2026 | 169 |
| Nov 12, 2026 | 148 |
| Nov 11, 2026 | 197 |
| Nov 10, 2026 | 226 |
| Nov 9, 2026 | 219 |
| Nov 8, 2026 | 239 |
| Nov 7, 2026 | 230 |
| Nov 6, 2026 | 202 |
| Nov 5, 2026 | 176 |
| Nov 4, 2026 | 129 |
| Nov 3, 2026 | 81 |
| Nov 2, 2026 | 74 |
| Nov 1, 2026 | 52 |
| Oct 31, 2026 | 54 |
| Oct 30, 2026 | 65 |
| Oct 29, 2026 | 55 |
| Oct 28, 2026 | 44 |
| Oct 27, 2026 | 46 |
| Oct 26, 2026 | 49 |
| Oct 25, 2026 | 62 |
| Oct 24, 2026 | 64 |
| Oct 23, 2026 | 48 |
| Oct 22, 2026 | 75 |
| Oct 21, 2026 | 99 |
| Oct 20, 2026 | 101 |
| Oct 19, 2026 | 99 |
| Oct 18, 2026 | 88 |
| Oct 17, 2026 | 94 |
| Oct 16, 2026 | 116 |
| Oct 15, 2026 | 99 |
| Oct 14, 2026 | 126 |
| Oct 13, 2026 | 124 |
| Oct 12, 2026 | 121 |
| Oct 11, 2026 | 111 |
| Oct 10, 2026 | 96 |
| Oct 9, 2026 | 77 |
| Oct 8, 2026 | 70 |
| Oct 7, 2026 | 31 |
| Oct 6, 2026 | 29 |
| Oct 5, 2026 | 28 |
| Oct 4, 2026 | 33 |
| Oct 3, 2026 | 38 |
| Oct 2, 2026 | 46 |
| Oct 1, 2026 | 67 |
| Sep 30, 2026 | 79 |
| Sep 29, 2026 | 82 |
| Sep 28, 2026 | 89 |
| Sep 27, 2026 | 182 |
| Sep 26, 2026 | 358 |
| Sep 25, 2026 | 938 |
| Sep 24, 2026 | 1,688 |
| Sep 23, 2026 | 1,925 |
| Sep 22, 2026 | 2,080 |
| Sep 21, 2026 | 2,178 |
| Sep 20, 2026 | 7,334 |
| Sep 19, 2026 | 9,784 |
| Sep 18, 2026 | 9,641 |
| Sep 17, 2026 | 9,420 |
| Sep 16, 2026 | 9,442 |
| Sep 15, 2026 | 10,605 |
| Sep 14, 2026 | 11,033 |
| Sep 13, 2026 | 5,950 |
| Sep 12, 2026 | 3,542 |
| Sep 11, 2026 | 3,571 |
| Sep 10, 2026 | 3,181 |
| Sep 9, 2026 | 3,067 |
| Sep 8, 2026 | 2,019 |
| Sep 7, 2026 | 2,229 |
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/684372049-better-use-as-title)<a href="https://payloaddirectory.dev/plugins/684372049-better-use-as-title"><img src="https://payloaddirectory.dev/badge/684372049-better-use-as-title.svg" alt="Payload Directory"></a>README
useAsTitle property for Payload 3.0pnpm add @payload-enchants/better-use-as-title
Add into your payload.config.ts:
import { betterUseAsTitle } from '@payload-enchants/better-use-as-title';
export default buildConfig({
// ...your config
plugins: [
betterUseAsTitle({
// List of collections to apply a custom `useAsTitle`
collections: [
{
// Collection slug
slug: 'better-use-as-title-test',
// `data` is the current document data, req is instance of PayloadRequest, from which you can get `payload` and `user`
// could be asynchronous as well
useAsTitle: ({ data, req }) =>
`${data.firstName ?? ''} - ${data.secondName}, ${data.age} y.o`,
// override properties for useAsTitle field for this collection
fieldOverride: {
name: 'customNameForCollection',
},
},
],
// override properties for useAsTitle field globally
fieldOverride: {
name: 'customName',
},
}),
],
});
You would need to write a custom script that updates all your docs like this
payload.update({
collection: 'posts',
where: {}
})
docs reorder
Reorder collection documents by drag and drop and sort them by a docOrder field
50301/wk335v3
templates
Managed template documents with read-time inheritance into collection fields
6228/wk0v4
reset list view
Adds a Reset Preferences button to collection list views to restore default columns, filters and pagination
57314/wk183v3
payload kanban board
Kanban board view for Payload collections with configurable status columns
38111/wk42v2
payload plugin tree list
Collapsible tree list view for Payload collections that use nested docs parents
3817/wk50v3
payload docs reorder
Drag-and-drop reordering of collection documents in the Payload admin, sorted by a docOrder field
3111/wk4v3