New in v2 Only available with Sveltia CMS
The value is rebuilt as the other fields are typed. Every other supported CMS emits an empty field, so the value stays typed by hand there.
Usage
{{ partial "admin/widgets/compute.js" $args }}
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
label | string | yes | Field label |
name | string | yes | Field name |
value | string | yes | Value template |
hint | string | no | Help text |
i18n | boolean or string | no | i18n mode (default: true) |
required | boolean | no | Mark as required |
Value template
A template references another field with {{fields.name}} and accepts a string transformation after a pipe.
{{fields.title | slugify}}
Inside a List, {{index}} returns the item position, stored as a number.