Skip to content

Instantly share code, notes, and snippets.

@vgrish
Created January 23, 2016 08:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vgrish/d43830119d6ee91ed00e to your computer and use it in GitHub Desktop.
Save vgrish/d43830119d6ee91ed00e to your computer and use it in GitHub Desktop.
[[!mFilter2?
&parents=`7`
&element=`msProducts`
&tpl=`_tpl.msProducts.row`
&filters=`
parent:categories
,ms|price:number
`
&tplFilter.outer.ms|price=`tpl.mFilter2.filter.slider`
&tplFilter.row.ms|price=`tpl.mFilter2.filter.number`
&tplOuter=`_tpl.mFilter2.outer`
&leftJoin=`{
"440x586_0": {"class":"msProductFile", "on": "440x586_0.product_id = msProduct.id AND 440x586_0.path LIKE '%/440x586/' AND 440x586_0.rank=0"}
,"440x586_1": {"class":"msProductFile", "on": "440x586_1.product_id = msProduct.id AND 440x586_1.path LIKE '%/440x586/' AND 440x586_1.rank=1"}
}`
&select=`{
"msProduct":"*"
,"440x586_0":"440x586_0.url as 440x586_0"
,"440x586_1":"440x586_1.url as 440x586_1"
}`
&showLog=`0`
]]
[[!+page.nav]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment