Dynamic description

default discord avatar
arctomachine11 months ago

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


Chat on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.