{*set $use = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'field' => 'tv_land_use']*} {*set $use = $use | replace : ':||:' : ','*} {*set $use = $use | replace : ':' : ''*} {set $communications = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'field' => 'tv_communications']} {set $communications = $communications | replace : ':||:' : ','} {set $communications = $communications | replace : ':' : ''} {set $functions = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'field' => 'tv_land_functions']} {set $functions = $functions | replace : ':' : ''} {*set $district = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'field' => 'tv_district']} {set $district = $district | replace : ':' : ''} {set $district = 'pdoField' | snippet : ['id' => $district]*} {set $parent = 'pdoField' | snippet : ['id' => $_modx->resource.parent]} {set $grandparent = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'topLevel' => 1, 'field' => 'id']} {set $ispolz = 'pdoField' | snippet : ['id' => $_modx->resource.id, 'field' => 'tv_status_gl']} {set $ispolz = $ispolz | replace : '||' : ', '} {set $mainFact = ($_modx->resource.tv_main_facts | replace : '::' : ',') | replace : ':' : ''} {*set $use_list = 'pdoResources' | snippet : [ 'parents' => 0, 'resources' => $use, 'limit' => 0, 'tpl' => '@INLINE {$_pls[\'pagetitle\'] | replace : " ": ", "}' ]*} {if $communications} {set $communications_list = 'pdoResources' | snippet : [ 'parents' => 0, 'resources' => $communications, 'includeTVs' => 'tv_comm_logo', 'where' => '["template = 14"]', 'limit' => 0, 'sortby' => 'menuindex', 'sortdir' => 'ASC', 'tpl' => '@INLINE

{$_pls[\'tv.tv_comm_logo\']}{$_pls[\'pagetitle\']}

' ]} {/if} {if $functions} {set $functions_list = 'pdoResources' | snippet : [ 'parents' => 0, 'resources' => $functions, 'limit' => 0, 'tpl' => '@INLINE {$_pls[\'pagetitle\']}' ]} {/if} {set $galery = json_decode($_modx->resource.tv_gallery, true)} {include 'head'} {include 'header'}
{include 'breadcrumbs'}

{$_modx->resource.pagetitle}

Адрес

{$_modx->resource.tv_object_address}

Площадь

{$_modx->resource.id == 220?'от ':''}{'!printApart'| snippet:['val' => $_modx->resource.tv_square]} м2

{set $filetype = '!fileExtension'| snippet:['filename' => $_modx->resource.tv_presentation]} {if $filetype == 'mp4'} Видео об объекте {elseif $filetype == 'pdf'} Получить презентацию {/if} Добавить в избранное
{foreach $galery as $gItem} {/foreach}

Основные моменты

Об участке

{$_modx->resource.tv_text_information}

Использование: {$ispolz}

{$communications_list}
{if $_modx->resource.tv_project_link?} Узнать подробнее {/if}
{if $mainFact}

Особенности

Ключевые факты

{'!pdoResources'|snippet:[ 'parents' => 201, 'where' => '["template = 45"]', 'resources' => $mainFact 'limit' => 0, 'tpl' => 'tpl_main_facts', 'includeTVs' => 'tv_image', 'sortby' => 'menuindex', 'sortdir' => 'asc', ]}
{/if} {set $similar = '!pdoResources'|snippet:[ 'parents' => 2, 'where' => '["template = 6"]', 'resources' => -$_modx->resource.id, 'limit' => 0, 'tpl' => 'tpl_object', 'tvFilters' => 'region == %'~$_modx->resource.region~'%', 'includeTVs' => 'tv_land_functions,tv_image,tv_square,tv_object_address,tv_status_gl', 'sortby' => 'menuindex', 'sortdir' => 'asc', ]} {if $similar}

Доступные объекты

Похожие предложения

{$similar}
{/if} {include 'callBackMain'}
{include 'footer'}