Hi
I have a page wit a list of products generated by getpage and getresource, with this I have sorted them by a TV called "area". The thing is, I really want to have more "sorting" options.
It would be nice if customers can choose between sorting items as "price"/"area"/"oranyotherTV"
Can this be done without having to generate a new template and resource ?
I was thinking in the lines of a simple link in the top of the page like illustrated below.
"Sort by: Area, Price, Weight, Volume"
Any help appreceiated!
The site in question:
http://www.suppli.no/panasonic/
My getPage call:
<p class="sortby">Sortert etter: <u>Areal</u>, Pris, Effektfaktor (COP), Varmekapasitet (kW)</p>
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`34`
&depth=`1`
&limit=`4`
&pageVarKey=`page`
&sortbyTV=`areal`
&sortdirTV=`ASC`
&showHidden=`1`
&sortby=`{"publishedon":"DESC"}`
&includeTVs=`1`
&includeContent=`0`
&tpl=`get-produkt-tpl`
]]
<ul id="pagination-clean">
[[!+page.nav]]
</ul>