A
A
Aricus2022-01-26 12:25:17
1C-Bitrix
Aricus, 2022-01-26 12:25:17

What template is connected in 1C-Bitrix?

I can't figure out what template is connected. Component connection in local > templates > module > components > bitrix > sale.personal.section > module > private.php:

pr('Точка 1.3');
  $APPLICATION->IncludeComponent(
    "bitrix:main.profile",
    ".default",
    Array(
      "SET_TITLE" =>$arParams["SET_TITLE"],
      "AJAX_MODE" => $arParams['AJAX_MODE_PRIVATE'],
      "SEND_INFO" => $arParams["SEND_INFO_PRIVATE"],
      "CHECK_RIGHTS" => $arParams['CHECK_RIGHTS_PRIVATE'],
      "EDITABLE_EXTERNAL_AUTH_ID" => $arParams['EDITABLE_EXTERNAL_AUTH_ID'],
      "DISABLE_SOCSERV_AUTH" => $arParams['DISABLE_SOCSERV_AUTH']
    ),
    $component
  );
pr('Точка 2');

In the bitrix > components > bitrix > main.profile > component.php component, the template is connected:
pr('Начало шаблона');
$this->IncludeComponentTemplate();
pr('Конец шаблона');

All these labels work out. And between them some kind of template is connected. But not the one on bitrix > components > bitrix > main.profile > templates > .default > template.php: the label does not work in it.
Please help me find the template file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aricus, 2022-01-26
@Aricus

As a result, it turned out that there was a matryoshka - a component template inside a component template. /local/templates/module/components/bitrix/sale.personal.section/module/bitrix/main.profile/.default/template.php . This is the first time I've encountered this, and I didn't know that this could even happen.
In case anyone has a similar problem, I solved it by exporting the language files (Settings > Localization > View Files > Export Messages to CSV) and looking in that file for one of the language phrases in the template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question