February 3, 2021
You can configure an initial value for slugs using the slug field type. This field is of type
String in your GraphQL schema but provides a powerful UI feature that comes in the form of automatic initial value generation.
You can configure the slug field to be generated from other field values in your model.
Slug), API ID (also typically
slug), and optional description.
Each Slug field template can be generated using the Available fields outlined above the input. If your model has a
name field, you could specify the slug template as
When creating content, the slug field will be automatically generated from the template field you're using.
For example, if your slug field is based off a
title field, when you start typing into the
title field, it will also update the slug field.
You can override the slug field value by typing in the box. You can also "Regenerate" the value to fallback to the template you provided.