M
M
Maria Popova2021-03-11 16:05:24
1C-Bitrix
Maria Popova, 2021-03-11 16:05:24

$APPLICATION->SetPageProperty not working?

The product needs to change the meta. In the file component_epilog.php I write:
$APPLICATION->SetTitle($seoname);
$APPLICATION->SetPageProperty("title", $seoname);
$APPLICATION->SetPageProperty("keywords", $seoname);
$APPLICATION->SetPageProperty("description", $seoname);
but the meta tags are not changed. What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Technique102, 2021-03-11
@masha_0212

Perhaps you are installing meta data below the component.
It is necessary to debug everything that is called below and check from which component / code section the data is set.
This thing works on the principle of deferred functions, i.e. set to the latest value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question