Answer the question
In order to leave comments, you need to log in
How to leave the section name in breadcrumbs?
There is a section. it is necessary to make sure that when changing the section title in the seo tab, only the title changes (it is h1 in my case), and the section name in the breadcrumbs does not change.
in h1 I insert like this
$ipropValues = new \Bitrix\Iblock\InheritedProperty\SectionValues($arResult['IBLOCK_ID'], $arResult['ID']);
$IPROPERTY = $ipropValues->getValues();
?><h1 class="textfon"><?= empty($IPROPERTY['SECTION_PAGE_TITLE']) ? $arResult["NAME"] : $IPROPERTY['SECTION_PAGE_TITLE']; ?></h1>
Answer the question
In order to leave comments, you need to log in
Let the name be in breadcrumbs, and put H1 in a separate field for the section. It will be so much easier
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question