{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}
{set $categories = '!getCollectionContents' | snippet}
{set $slider = $_modx->resource.collection_slider | json_decode}
{if $slider} {foreach $slider as $slide} {/foreach} {else} {if $_modx->resource.catalog_image} {/if} {/if}

{$_modx->resource.pagetitle}

{$_modx->resource.content}
  • Бренд{$_modx->resource.parent | resource : 'pagetitle'}
  • Состав коллекции {$categories.text}
{if $_modx->resource.collection_min_price}
от {$_modx->resource.collection_min_price} ₽ / м2
{/if} {set $files = $_modx->resource['el-catalog'] | json_decode} {foreach $files as $file}
{$file['el-catalog-name']}
{/foreach}
{foreach $categories.list as $category}

{$category.name}

{'!msProducts' | snippet : [ 'limit' => 0, 'parents' => 0, 'resources' => implode(",",$category.product_ids), 'tpl' => 'tpl.cardProductFavorites-plit' ]}
{/foreach} {if $_modx->user.id == 1 || $_modx->user.id == 95}
Редактировать | {$_modx->resource.id}
{/if}