[[!getPage?
&elementClass=`modSnippet`
&element=`SimpleSearch`
&parents=`17`
&depth=`2`
&limit=`10`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&sortby=`{"publishedon":"ASC","createdon":"DESC"}`
&tpl=`yourResultsTpl`
]]
[[!getPage?
&elementClass=`modSnippet`
&element=`SimpleSearch`
&parents=`3`
&depth=`2`
&limit=`10`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&sortby=`{"starrating":"DESC", "listingtype":"DESC", "latestrecdate":"ASC"}`
&tpl=`fbnsearchresultstpl`
]]Thanks for that, i use the same syntax for the &sortby for pdoResources, but this does not appear to work for SimpleSearch (unless i have mis typed something). My code is given below - starrating and listingtype are Template Variables
[[!getPage? &elementClass=`modSnippet` &element=`SimpleSearch` &parents=`3` &depth=`2` &limit=`10` &pageVarKey=`page` &includeTVs=`1` &includeContent=`1` &sortby=`{"starrating":"DESC", "listingtype":"DESC", "latestrecdate":"ASC"}` &tpl=`fbnsearchresultstpl` ]]
Any ideas what i am doing wrong?