Skip to content

Instantly share code, notes, and snippets.

@morozVA
Last active Feb 23, 2018
Embed
What would you like to do?
evo DocLister
[[DocLister?
&display=`20`
&orderBy=`availability ASC, price ASC`
&parents=`7`
&tvList=`new,sale,discount,quantity,code,image,price,old-price`
&renderTV=`image`
&tpl=`search_result`
&tplLast=`@CODE `
&id=`search`
&addWhereList=`c.template IN (9)`
&depth=`10`
&showParent=`1`
&dateFormat=`%d.%m.%Y`
&dateSource=`pub_date`
&ownerTPL=`@CODE:<section class="gray products">[+dl.wrap+]</section>`
&noneTPL=`@CODE:Товаров нет`
&filters=`OR(AND(tv:code:eq:[[search]]);OR(AND(content:pagetitle:containsOne:[[search]])))`
&filters=`OR(AND(content:parent:is:[*id*]);OR(AND(tv:additional_categories:containsOne:[*id*])))`
&paginate=`pages`
&TplNextP=``
&TplPrevP=``
&TplPage=`@CODE: <li><a title="[+num+]" href="[+link+]" class="">[+num+]</a></li>`
&TplCurrentPage=`@CODE:<li class="pagination-active"><a>[+num+]</a></li>`
&TplWrapPaginate=`@CODE: <div ><ul class="pagination pt15">[+wrap+]</ul></div>`
]]
//сортировка по tv как число, а не как строка
&tvSortType=`UNSIGNED`
[+search.pages+]
[+iteration:math=`(?)%2`:is=`0`:then=`<div class="clearfix hidden visible-xs"></div>`+]
[+iteration:math=`(?)%3`:is=`0`:then=`<div class="clearfix hidden-xs"></div>`+]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment