A Payload site, ready to clone

Placeholder: layered waves in teal

A project’s own fields on Media, Pages, Users and Authors

Add fields

A project often needs one more field on a page or an image: a subtitle, a licence. Its plugin now asks for it with extendCollection, on Users, Media, Pages or Authors. The fields go after template-site’s (in a page, at the end of its Page tab, or in the sidebar), and their columns come with the project’s own migration.

Hide the optional ones

A project that doesn’t use an image’s caption, credit or description can hide them in the admin. Nothing is deleted and no migration is needed: show them again and their values are still there. The alternative text can never be hidden.

Stops early, names names

A field name already in use, by template-site, by another plugin or by Payload itself, stops the app and pnpm check:project, naming both owners. So does a collection that isn’t one of the four, or hiding a field that isn’t optional. The README’s “Extending template-site’s collections” has the details, and the list of each collection’s stable and optional fields, which only change in a major version.

In a project plugin
extendCollection('media', {
  fields: [{ name: 'acmeLicence', type: 'text' }],
  hide: ['credit'],
})