Themes built on the Twig templating engine are now deprecated and require migration to Vitrin to ensure continued support and compatibility with Zid.
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the setting (e.g., "images", "title"). |
label | object {ar,en} | Input label shown to the merchant. |
type | string | Input type (e.g., "text", "textarea", "image", "number", "color", "list"). |
default | any | Default value when none is provided. |
icon | text | Optional reference to an icon (e.g. fal fa-box ). |
Field | Type | Description |
---|---|---|
settings | list[Any] | List of settings. |
max_items | int | Maximum number of items allowed. Useful to not clutter the UI in some cases. |
{
"type": "list",
"id": "list_of_settings",
"label": {
"ar": "",
"en": "List of Settings"
},
"max_items": 4,
"settings": [
{
"type": <Any Setting Type>
...
},
...
]
}
Field | Type | Description |
---|---|---|
settings | list[Any] | List of settings. |
expandable | bool | Flag to make the grouping expandable. |
{
"type": "fieldset",
"id": "links",
"label": {
"ar": "روابط مهمة",
"en": "Links"
},
"expandable": true,
"settings": [
{...},
...
]
}
{
"type": "snippet",
"id": "some_snippet",
"label": {
"ar": "",
"en": "Some HTML"
}
}