Андрей Николаев, в коробке лучше не копировать шаблоны, замучаешься потом "следить за актуальностью".
Есть же хак, позволяющий добавлять/менять/удалять данные, через result_modifier.php.
jp.dima, попробуй так.
Создаёшь путь:
local/templates/.default/components/bitrix/crm.lead.detail/.defaultВнутри 2 файла.
template.phpКод |
---|
<?php
defined('B_PROLOG_INCLUDED') || die;
|
result_modifier.phpКод |
---|
<?php
defined( 'B_PROLOG_INCLUDED' ) || die;
if ( is_dir( $_SERVER['DOCUMENT_ROOT'] . SITE_TEMPLATE_PATH . '/components' . $this->getComponent()->getRelativePath() . '/' . $this->GetName() ) ) {
$this->__folder = SITE_TEMPLATE_PATH . '/components' . $this->getComponent()->getRelativePath() . '/' . $this->GetName();
} else {
$this->__folder = $this->getComponent()->getPath() . '/templates/' . $this->GetName();
}
$this->__file = $this->__folder . '/template.php';
$this->__hasCSS = file_exists( $_SERVER['DOCUMENT_ROOT'] . $this->__folder . '/style.css' );
$this->__hasJS = file_exists( $_SERVER['DOCUMENT_ROOT'] . $this->__folder . '/script.js' );
include $_SERVER['DOCUMENT_ROOT'] . $this->__folder . '/result_modifier.php';
// В этом месте производишь свои кастомные изменения
unset($arResult['ENTITY_FIELDS']['ключ поля']); |