A Payload site, ready to clone

Placeholder: layered waves in teal

Blocks with dates, related content and links

New fields

A block made with pnpm make:block can now have a date, shown in the page’s language; a page, a post or another document of the site, shown by its title and linked to it; and a link, to a page of the site or to any address, with its own text and the choice of opening it in a new tab.

The right address in every language

The site works out the address of the related content in the page’s language, as the collection templates do. Content that isn’t published, or isn’t translated, shows no link.

Changed your mind?

Run the same command with a field more and --force: it writes the block again, as long as nobody has edited its files. An edited file stops it, named, and nothing is written. The Block generator page under Features explains it.

An event: its date, its venue and a link
pnpm make:block event --group lists \
  --field heading:text --field starts:date:required \
  --field venue:relationship=pages --field cta:link --dry-run

The generator, in the demo

Its field types and --force.

Open Block generator