[[!pdoPage?
&limit=`30`
&show hidden=`1`
&tpl=`tovar-catalog`
&templates=`5`
&includeContent=`1`
&includeContent=`1`
&includeTVs=`image-tovar,price-old,price,sale,images,bonus`
&tplPageWrapper=`@INLINE <div class="pagination"><ul> Pages: [[+prev]] [[+pages]] [[+next]]</ul></div>`
&tplPagePrevEmpty=`@INLINE`
&tplPageNextEmpty=`@INLINE`
[[!Sort]]
]]
$sort = $_GET['sort'];
if($sort == ") {
$output='&sortby=`{"editedon":"DESC"}`;
} else {
$output = '&sortby=`{"'.$sort.'":"'.$_GET['dir'].'"}`;
}
return $output;
Find more questions by tags MODX