D
D
DeeUs2018-05-08 07:44:13
1C-Bitrix
DeeUs, 2018-05-08 07:44:13

How to display META TITLE template in title tag?

Hello!
How to display META TITLE template in title tag?
now I have the name of the section displayed$arResult['SECTION']['NAME']

code snippet from component template
if( $arResult['SECTION']['NAME'])
        {
            $APPLICATION->SetPageProperty("title", $arResult['SECTION']['NAME']);
        }else{
            $APPLICATION->SetPageProperty("title", 'Каталог');
        }

    $APPLICATION->SetTitle($arResult['SECTION']['NAME']);


In another template of this component, the code is exactly the same, but the normal title is displayed (according to the template).
What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Ivanov, 2018-05-08
@ZZiliST

Look in the component settings, most likely you have the "Set page title" checkbox in one, and not in the other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question