Reference Fields
Slug
The Slug field turns what the editor types into a URL-friendly slug and shows the page's full address.
Settings
In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.
Note:
You can find a comprehensive list of all basic settings in the 'Overview' section.
| Option | Description |
|---|---|
Placeholder | Placeholder to display when no value is entered |
Auto Check | The option to call an endpoint for validating the input as the user types |
Define with JSON
When defining templates using JSON, this field is represented using:
- Component Name:
str-input - Type:
slug - Reference ID:
str-input|slug
The settings above map into the editor.attributes object inside the JSON definition.
{
...
"editor": {
"name": "str-input",
"type": "slug",
"propertyName": "...",
"options": {
"autoCheck": {
"csrf": "...",
"src": "..."
}
}
},
...
}Live preview
Note:
This field does not have any default Strife Web Components. Custom live preview implementations are fully supported.
Note:
For more information on live preview and Strife Web Components, please refer to the Live preview documentation.