Last active
February 23, 2018 12:16
-
-
Save morozVA/ae5e74a254aa7bd02e459106bf5ec33e to your computer and use it in GitHub Desktop.
evo DocLister
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[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