Commit 5d82dffd authored by Sven Franck's avatar Sven Franck

data: added single product page

parent 85879a14
......@@ -13,6 +13,19 @@
{"href": "product_overview"}
]
}
},
{
"generate": "widget",
"type": "page",
"property_dict": {
"title_i18n": "portal_type_dict.product_dict.text_dict.products",
"theme": "slapos-white"
},
"view_dict": {
"default": [
{"href": "product_view"}
]
}
}
]
}
\ No newline at end of file
{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,1], "select_list": ["currency", "_id", "brand", "description_short", "price", "default_image_path"]},
"property_dict": {
"initial_query_url_indentifier": "_id"
},
"scheme": [
{
"position": "left",
"field_list": [
{"field": "default_image_path", "type":"image"}
]
}, {
"position": "center",
"field_list": [
{"field": "brand", "type": "h3", "mergeText": "description_short"},
{"field": "price", "type": "p", "format": {"type": "integer", "digits": 2}, "mergeText": "currency"}
]
}
],
"children": [{
"generate": "widget",
"type": "listview",
"property_dict": {
"class_list": "responsive",
"theme": "slapos-white",
"map_children": "listItem",
"dynamic": true
},
"children":[]
}]
}
\ No newline at end of file
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