{set $seo_title = 'seoFields' | snippet : ['type' => 'title']} {set $seo_description = 'seoFields' | snippet : ['type' => 'description']} {if $seo_title} {$seo_title} {else} Водолей-Стайл - {if $_modx->resource.longtitle} {$_modx->resource.longtitle} {else} {$_modx->resource.pagetitle} {/if} {/if} {if $seo_description} {else} {/if}

HANSGROHE

{set $logo = 'brandParameter' | snippet : [ 'vendor_resource_id' => $_modx->resource.id, 'parameter' => 'logo' ]} {if $logo} {/if} {$_modx->resource.content}
{set $collections = '!pdoResources' | snippet : [ 'tpl' => 'collectionCard', 'sortby' => 'menuindex', 'sortdir' => 'asc', 'depth' => 0, 'limit' => 0, 'includeTVs' => 'catalog_image', 'setTotal' => true, 'totalVar' => 'total_collections' 'where' => ["template:IN" =>[21, 22, 30, 34]] ]} {if $modx->getPlaceholder('total_collections') > 0} {set $not_in_collection = $modx->getCollection('msProduct', ['parent' => $modx->resource->get('id')])}

коллекции

{$collections}
{if count($not_in_collection) > 0} {/if}
{else} {set $categories = '!getBrandContents' | snippet} {foreach $categories.list as $category}

{$category.name}

{foreach $category.product_ids as $product_id}
{/foreach}
{/foreach} {/if} {if $_modx->resource['el-catalog'] != ''}

Электронные каталоги

{/if} {if $_modx->user.id == 1 || $_modx->user.id == 95}
Редактировать | {$_modx->resource.id}
{/if}