Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Dynamic description

default discord avatar
arctomachinelast year
2

Is it possible to change description content dynamically? The idea I have in mind is description for slug that displays placeholder url or actual url with field value taken into account. Similar to how title field works


description: ({value}) => 'This page will be available at example.com/products/${value ?? 'XXX'}'

So if slug field is empty, description would be example.com/products/XXX


But if slug has value "new_product777", description instead would be example.com/products/new_product777

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.