$_modx->resource.id,
'returnIds' => 1,
'depth' => 0,
'limit' => 99999,
'resources' => '-1399,-1400,-1404,-1407,-1402,-1403,-1401,-1421,-1426,-1427,-118'
'where' => [
'class_key' => 'msCategory',
],
'sortby' => ['menuindex' => 'ASC']
]
}
{if ($categories)}
<div class="block">
<div class="container">
<div class="posts-view">
<div class="posts-view__list posts-list pt-4">
<div class="posts-list__body row">
{'!pdoResources' | snippet : [
'parents' => $_modx->resource.id,
'depth' => 0,
'tpl' => 'category-block-item.tpl',
'includeTVs' => 'thumbnail',
'limit' => 9999,
'sortby' => ['menuindex' => 'ASC']
]}
</div>
</div>
</div>
</div>
</div>
<div class="block">
<div class="container">{'content' | resource}</div>
</div>
{else}
<div class="block">
<div class="container">
{'!mFilter2' | snippet : [
'class' => 'msProduct',
'parents' => $_modx->resource.parent == 30 ? 2 : $_modx->resource.id,
'where' => $_modx->resource.parent == 30 ? ['Vendor.name' => 'pagetitle' | resource] : [],
'limit' => 99999,
'element' => 'msProducts',
'tplOuter' => 'category-products-content.tpl',
'tpl' => 'product-item.tpl',
'suggestions' => 0,
'showHidden' => 0,
'aliases' => '
ms|vendor==vendor,
msoption|appointment==appointment,
msoption|application==application,
msoption|rbr==rbr,
msoption|feature==feature,
msoption|tip_kombayna==tip_kombayna,
msoption|tip_pluga==tip_pluga,
msoption|power-dvigatel==power-dvigatel,
msoption|proizvoditelnost==proizvoditelnost,
msoption|klass==klass,
msoption|c_type==c_type,
msoption|appointment==appointment
',
'filters' => '
ms|vendor:vendors,
msoption|appointment,
msoption|application,
msoption|rbr,
msoption|feature,
msoption|tip_kombayna,
msoption|tip_pluga,
msoption|power-dvigatel,
msoption|proizvoditelnost,
msoption|klass,
msoption|c_type,
msoption|appointment
'
'tplFilter.outer.default' => 'product-filter-outer',
'tplFilter.row.default' => 'product-filter-checkbox'
]}
<div>
[[*content]]
</div>
</div>
</div>
{/if}
'resources' => '-1399,-1400,-1404,-1407,-1402,-1403,-1401,-1421,-1426,-1427,-118' - не они?
Обсуждают сегодня