menu
Schema
{ "nav": { "type": "menu", "label": "Menu", "default": "header" } }
Nunjucks example
{% for item in widget.data.nav %}
<a href="{{ item.url }}">{{ item.title }}</a>
{% endfor %}
Use to bind a widget to a stored menu.
Example output
{
"nav": [
{ "title": "الصفحة الرئيسية", "url": "/" },
{ "title": "مجموعة", "url": "/collection/*******" },
{ "title": "منتجات", "url": "/collection/all" },
{ "title": "منتج", "url": "/product/cvbcvbcvb" },
{ "title": "مجموعات", "url": "/collections" },
{
"title": "قائمه فرعية",
"children": [
{ "title": "الصفحة الرئيسية", "url": "/" },
{ "title": "مجموعة", "url": "/collection/*******" },
{ "title": "منتجات", "url": "/collection/all" },
{ "title": "منتج", "url": "/product/*******" },
{ "title": "مجموعات", "url": "/collections" },
]
}
]
}

هذا مثال لكيفية ظهور قائمة "header" بعد جلبها من الإعدادات.