Commit 9e8b1d5e authored by Sven Franck's avatar Sven Franck

data: made categories dynamic

parent 046ad22c
......@@ -16,11 +16,7 @@
"type": "a",
"direct": {
"href": "#",
"className": "panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"attributes": {
"data-enhanced": true,
"data-rel": "close"
"className": "ui-panel-close ui-icon-remove ui-btn ui-btn-icon-notext ui-shadow ui-corner-all"
},
"logic": {"text": "Close"}
}]
......@@ -89,33 +85,33 @@
"attributes": {"data-enhanced":"true", "data-inset": false, "data-i18n": "[placeholder]global_dict.filter","placeholder":"Filter", "data-icon":"search", "data-action-btn":"true", "data-type":"search", "type":"search"},
"logic":{"clear":"true", "action":"search", "add_label": false}
}, {
"generate": "widget",
"type": "listview",
"portal_type_source": "Portal Category",
"portal_type_title": "category",
"portal_type_fields": "category_fieldlist",
"initial_query": {"query": "reference: 'product_category'", "include_docs": true, "select_list": ["title", "title_i18n"]},
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"filter": true,
"input": "#select_category"
"check": true
},
"children": [
{"type": "item", "href": "#products/categories/suits", "center": {"text": [{"type": "h1", "text": "Jumpsuits", "text_i18n": "global_dict.suits"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/sets", "center": {"text": [{"type":"h1", "text": "Sets", "text_i18n": "global_dict.set"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/swimsuits", "center": {"text": [{"type":"h1", "text": "Swimsuits", "text_i18n": "global_dict.swimsuit"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/dresses", "center": {"text": [{"type": "h1","text": "Dresses", "text_i18n":"global_dict.dress"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/jackets", "center": {"text": [{"type": "h1","text": "Jackets/Coats", "text_i18n":"global_dict.jacket_coat"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/knitwear", "center": {"text":[{"type": "h1", "text": "Knitwear", "text_i18n": "global_dict.knitwear"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/shirts", "center": {"text":[{"type":"h1", "text": "Shirts", "text_i18n":"global_dict.shirt"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/skirts", "center": {"text": [{"type": "h1", "text": "Skirts", "text_i18n": "global_dict.skirt"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/tops", "center": {"text": [{"type":"h1", "text": "Tops", "text_i18n": "global_dict.top"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/trousers", "center": {"text": [{"type":"h1", "text": "Trousers", "text_i18n": "global_dict.trouser"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/tshirt", "center": {"text": [{"type": "h1","text": "T-Shirts", "text_i18n":"global_dict.tshirt"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/belts", "center": {"text":[{"type": "h1", "text": "Belts", "text_i18n": "global_dict.belt"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/scarves", "center": {"text":[{"type":"h1", "text": "Scarves", "text_i18n":"global_dict.scarf"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/wallets", "center": {"text": [{"type": "h1","text": "Wallets", "text_i18n":"global_dict.wallet"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/hangbags", "center": {"text":[{"type": "h1", "text": "Handbags", "text_i18n": "global_dict.sac"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/shoes", "center": {"text":[{"type":"h1", "text": "Shoes", "text_i18n":"global_dict.shoes"}]}, "right": {"check": true}},
{"type": "item", "href": "#products/categories/jewellry", "center": {"text":[{"type":"h1", "text": "Jewellry", "text_i18n":"global_dict.jewels"}]}, "right": {"check": true}}
]
"scheme": [
{
"position": "center",
"field_list": [
{"field": "title"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"theme": "slapos-white",
"map_children": "listItem",
"filter": true,
"input": "#select_category",
"dynamic": true
},
"children": []
}]
}
]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment