Commit eeb39eb8 authored by Sven Franck's avatar Sven Franck

data: added carousel and controlbar to start page

parent 0729697a
......@@ -9,6 +9,79 @@
},
"view_dict": {
"default": [
{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "section",
"class_list": "span_1"
},
"children": [{
"type": "img",
"direct": {"src": "img/weinparis.jpg", "alt": ""}
},{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit":[0, 5], "select_list": []},
"property_dict": {},
"scheme": [],
"children": [{
"generate": "widget",
"type": "controlgroup",
"property_dict": {
"class_list": "foo",
"dynamic": true
},
"children": [
{"type": "a", "direct": {"href": "#", "className": "ui-btn"}, "attributes": {}, "logic": {"text": "a"}},
{"type": "a", "direct": {"href": "#", "className": "ui-btn"}, "attributes": {}, "logic": {"text": "b"}},
{"type": "a", "direct": {"href": "#", "className": "ui-btn"}, "attributes": {}, "logic": {"text": "c"}},
{"type": "a", "direct": {"href": "#", "className": "ui-btn"}, "attributes": {}, "logic": {"text": "d"}},
{"type": "a", "direct": {"href": "#", "className": "ui-btn"}, "attributes": {}, "logic": {"text": "e"}}
]
}]
}]
},
{
"generate": "widget",
"type": "controlbar",
"property_dict": {
"wrap": "section",
"class_list": "span_1"
},
"children":[{
"portal_type_source": "Product",
"portal_type_title": "product",
"skip_total_records": true,
"initial_query": {"include_docs": true, "limit": [0,2], "select_list": ["_id", "brand", "teaser_image_path"], "sort_on": [["teaser_image_path", "descending"]] },
"property_dict": {
"link": "true",
"link_identifier": "_id",
"link_core": "product_module"
},
"scheme": [{
"position": "caption",
"field_list": [{"field": "brand", "type": "p"}]
}, {
"position": "content",
"field_list": [{"field": "teaser_image_path", "type": "image"}]
}],
"children": [{
"generate": "widget",
"type": "carousel",
"property_dict": {
"handles": true,
"captions": true,
"captiontheme": "slapos-white",
"captionpos": "bottom",
"map_children": "listItem",
"dynamic": true
},
"children": []
}]
}]
},
{
"type": "h3",
"direct": {"className": "translate ui-content-header responsive"},
......
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