Наследие и школа
{if $.get['tag']?}
{set $TagsWhere = '!tvssResources' | snippet : ['tv' => '8', 'tpl' => 'tags_id', 'limit' => 0] ~ "0" }
{$_modx->runSnippet('!pdoPage', [
'element' => 'ms2GalleryResources',
'parent' => $id,
'typeOfJoin' => 'left',
'includeThumbs' => 'small',
'ajaxMode' => 'default',
'ajax' => '0',
'tpl' => 'book',
'includeContent' => '0',
'scheme' => 'abs',
'includeTVs' => 'autor,country,pubdate',
'sortbyTV' => 'pubdate',
'sortdir' => 'ASC',
'tvPrefix' => '',
'limit' => '12',
'where' => ['modResource.id:IN' => $TagsWhere | replace:"\n":"" | replace:",0":"" | split],
'showLog' => '0'
])}
{else}
{$_modx->runSnippet('!pdoPage', [
'element' => 'ms2GalleryResources',
'parent' => $id,
'typeOfJoin' => 'left',
'includeThumbs' => 'small',
'ajaxMode' => 'default',
'ajax' => '0',
'tpl' => 'book',
'includeContent' => '0',
'scheme' => 'abs',
'includeTVs' => 'autor,country,pubdate',
'sortbyTV' => 'pubdate',
'sortdir' => 'ASC',
'tvPrefix' => '',
'limit' => '12',
'showLog' => '0',
])}
{/if}
{$idx}
{$_modx->getPlaceholder('page.nav')}