Theme System Configuration¶
You can reach system configuration values in your twig file using variable systemConfig.
Properties¶
| Attribute name | Type | Description |
|---|---|---|
| viewTransition | checkbox |
Enable view transition. Full description |
| systemFavicon | imageUpload |
Favicon. Icon in the address bar (favicon). Full description |
| productsCount | number |
Number of products on page. Full description |
| xlSize | number |
Product photo XL size. Full description |
| lSize | number |
Product photo L size. Full description |
| mSize | number |
Product photo M size. Full description |
| sSize | number |
Product photo S size. Full description |
| xsSize | number |
Product photo XS size. Full description |
systemConfig.viewTransition¶
Enable view transition.
{% if systemConfig.viewTransition %}
<meta name="view-transition" content="same-origin" />
{% endif %}
{
"type" : "checkbox",
"name" : "viewTransition",
"label" : "Enable view transition",
"isRequired" : false,
"defaultValue" : 0
}
systemConfig.systemFavicon¶
Favicon. Icon in the address bar (favicon).
When favicon is not set this property will return null.
Element does not support translations, so you can set only one favicon for all language versions.
{
"type": "imageUpload",
"name": "systemFavicon",
"label": "Favicon",
"options": {
"allowedExtensions": ["jpg", "png", "gif", "ico"]
}
}
Click here to see more information about imageUpload element.
systemConfig.productsCount¶
Represents number of products on page.
{
"type": "number",
"name": "productsCount",
"label": "Number of products on page",
"labelDescription": "Max. 72.",
"isRequired": true,
"defaultValue": 24,
"validators": [
{ "type": "int" },
{ "type": "lessEqThan", "options": { "max": 72 } },
{ "type": "greaterEqThan", "options": { "min": 1 } }
]
}
systemConfig.xlSize¶
Maximum dimension of the longer side for XL size of product photo. This setting apply to product photos displayed in all modules.
{
"type": "number",
"name": "xlSize",
"label": "XL",
"isRequired": true,
"options": { "postfix": "px" },
"defaultValue": 750,
"validators": [
{ "type": "int" },
{ "type": "greaterEqThan", "options": { "min": 1 }}
]
}
systemConfig.lSize¶
Maximum dimension of the longer side for L size of product photo. This setting apply to product photos displayed in all modules.
{
"type": "number",
"name": "lSize",
"label": "L",
"isRequired": true,
"options": { "postfix": "px" },
"defaultValue": 500,
"validators": [
{ "type": "int" },
{ "type": "greaterEqThan", "options": { "min": 1 }}
]
}
systemConfig.mSize¶
Maximum dimension of the longer side for M size of product photo. This setting apply to product photos displayed in all modules.
{
"type": "number",
"name": "mSize",
"label": "M",
"isRequired": true,
"options": { "postfix": "px" },
"defaultValue": 300,
"validators": [
{ "type": "int" },
{ "type": "greaterEqThan", "options": { "min": 1 }}
]
}
systemConfig.sSize¶
Maximum dimension of the longer side for S size of product photo. This setting apply to product photos displayed in all modules.
{
"type": "number",
"name": "sSize",
"label": "S",
"isRequired": true,
"options": { "postfix": "px" },
"defaultValue": 150,
"validators": [
{ "type": "int" },
{ "type": "greaterEqThan", "options": { "min": 1 }}
]
}
systemConfig.xsSize¶
Maximum dimension of the longer side for XS size of product photo. This setting apply to product photos displayed in all modules.