I
I
IliaMal2020-11-23 08:47:02
1C-Bitrix
IliaMal, 2020-11-23 08:47:02

How to find where title is overridden?

Hello.

I can't change the title on the news page.
In component_epilog.php I set the desired title

$APPLICATION->SetPageProperty("title", "То что хочу видеть");
, but the old title is still displayed on the page.
On the news page, 1 complex component is called bitrix:news, in detail.php there is also only one component. bitrix:news.detail
If at the end of component_epilog.php I break the code execution
$APPLICATION->SetPageProperty("title", "То что хочу видеть");
die();

That title takes the value I need if the code is interrupted after calling the component in detail.php:
...
...
    ),
    $component
  );
    die();
, then my title will be overridden.

How to find where title is overridden?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-23
Madzhugin @Suntechnic

Well so the complex component also redefines.
Surely he has a parameter that disables this behavior - look.
But it's best not to use it. What in general can force to use complex components? Complex components are an evil which must be avoided by all available means.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question