Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
1e06153a
Commit
1e06153a
authored
Apr 09, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
data: switched from hardcoded to JIO based item query and display
parent
74e78a3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
120 deletions
+75
-120
data/home.json
data/home.json
+75
-120
No files found.
data/home.json
View file @
1e06153a
...
...
@@ -15,51 +15,42 @@
"attributes"
:
{
"data-i18n"
:
"global_dict.bestseller"
},
"logic"
:
{
"text"
:
"Bestsellers"
}
},
{
"generate"
:
"widget"
,
"type"
:
"listview"
,
"portal_type_source"
:
"Product"
,
"portal_type_title"
:
"product"
,
"portal_type_fields"
:
"product_fieldlist"
,
"skip_total_records"
:
true
,
"initial_query"
:
{
"query"
:
"subject: 'best'"
,
"include_docs"
:
true
,
"limit"
:
[
0
,
4
],
"select_list"
:
[
"currency"
,
"_id"
,
"brand"
,
"description_short"
,
"price"
,
"default_image_path"
]},
"property_dict"
:
{
"class_list"
:
"responsive"
,
"filter"
:
"true"
,
"input"
:
"#product_search"
,
"theme"
:
"slapos-white"
,
"map_children"
:
"listItem"
"link"
:
true
,
"link_identifier"
:
"_id"
,
"link_core"
:
"product_module"
},
"children"
:[{
"type"
:
"item"
,
"href"
:
"products/710"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/710/10/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Nat et Nin - Charlotte"
},
{
"type"
:
"p"
,
"text"
:
"240.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"product/118"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/118/21/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Eleven Paris - Che T"
},
{
"type"
:
"p"
,
"text"
:
"35.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/665"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/655/16/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"See U Soon - Chemise Charlotte"
},
{
"type"
:
"p"
,
"text"
:
"65.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/143"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/143/23/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"See U Soon - Dardoot Top Georgia"
},
{
"type"
:
"p"
,
"text"
:
"65.00€"
}]
"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"
,
"filter"
:
"true"
,
"input"
:
"#product_search"
,
"theme"
:
"slapos-white"
,
"map_children"
:
"listItem"
,
"dynamic"
:
true
},
"children"
:[]
}]
},
{
"type"
:
"h3"
,
...
...
@@ -67,87 +58,51 @@
"attributes"
:
{
"data-i18n"
:
"global_dict.newest"
},
"logic"
:
{
"text"
:
"Newest items"
}
},
{
"generate"
:
"widget"
,
"type"
:
"listview"
,
"portal_type_source"
:
"Product"
,
"portal_type_title"
:
"product"
,
"portal_type_fields"
:
"product_fieldlist"
,
"skip_total_records"
:
true
,
"initial_query"
:
{
"include_docs"
:
true
,
"limit"
:
[
0
,
8
],
"sort_on"
:
[[
"date_created"
,
"descending"
]],
"select_list"
:
[
"currency"
,
"_id"
,
"brand"
,
"description_short"
,
"price"
,
"default_image_path"
]},
"property_dict"
:
{
"class_list"
:
"responsive"
,
"filter"
:
"true"
,
"input"
:
"#product_search"
,
"theme"
:
"slapos-white"
,
"map_children"
:
"listItem"
},
"children"
:[{
"type"
:
"item"
,
"href"
:
"products/128"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/128/23/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Eleven Paris - Daisy Pants"
},
{
"type"
:
"p"
,
"text"
:
"98.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/247"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/247/14/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Part Two - Croyden Shirt"
},
{
"type"
:
"p"
,
"text"
:
"99.95€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/651"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/651/15/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Part Two - Chemise Francoise"
},
{
"type"
:
"p"
,
"text"
:
"89.00€"
}]
"link"
:
true
,
"link_identifier"
:
"_id"
,
"link_core"
:
"product_module"
,
"pagination"
:
{
"class_list"
:
"center"
,
"option_list"
:
[
{
"value"
:
"8"
,
"text"
:
"8"
,
"text_i18n"
:
"global_dict.8"
},
{
"value"
:
"16"
,
"text"
:
"16"
,
"text_i18n"
:
"global_dict.16"
},
{
"value"
:
"32"
,
"text"
:
"32"
,
"text_i18n"
:
"global_dict.32"
},
{
"value"
:
"64"
,
"text"
:
"64"
,
"text_i18n"
:
"global_dict.64"
}
]
}
},{
"type"
:
"item"
,
"href"
:
"products/595"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/595/15/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"See U Soon - Debardeur Eve"
},
{
"type"
:
"p"
,
"text"
:
"45.00€"
}]
}
},
{
"type"
:
"item"
,
"href"
:
"products/78"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/78/12/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Marie Sixtine - Debardeur Oscar"
},
{
"type"
:
"p"
,
"text"
:
"45.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/721"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/721/10/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Nat et Nin - Debbie"
},
{
"type"
:
"p"
,
"text"
:
"90.00€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/588"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/588/14/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Caroline Vermeille - Doggy Trendy"
},
{
"type"
:
"p"
,
"text"
:
"59.95€"
}]
}
},{
"type"
:
"item"
,
"href"
:
"products/139"
,
"left"
:
{
"image"
:
"http://www.weinparis.com/product_module/139/27/default_image?display=large&format=jpg"
,
"alt"
:
""
},
"center"
:
{
"text"
:
[
{
"type"
:
"h3"
,
"text"
:
"Eleven Paris - Dooth Skirt"
},
{
"type"
:
"p"
,
"text"
:
"130.00€"
}]
},
"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"
,
"filter"
:
"true"
,
"input"
:
"#product_search"
,
"theme"
:
"slapos-white"
,
"map_children"
:
"listItem"
,
"dynamic"
:
true
},
"children"
:[]
}]
}
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment