Answer the question
In order to leave comments, you need to log in
I don't understand how to make cnc?
I have section elements in catalog.section.list
foreach($arResult['SECTIONS'][$key]["ELEMENTS"] as $key2=>$value){
?><li>
<a href="detail.php?ELEMENT_ID=<?=$value["ID"]?>">
<?=$value["NAME"];?>
</a>
<li><?
}
/careers/vacancies/detail.php?ELEMENT_ID=12
Answer the question
In order to leave comments, you need to log in
https://dev.1c-bitrix.ru/learning/course/?COURSE_I...
https://dev.1c-bitrix.ru/learning/course/index.php...
https://dev.1c -bitrix.ru/api_help/main/general/url...
In the same place SECTION_PAGE_URL should be in an array with a full link
<?php foreach($arResult['SECTIONS'][$key]["ELEMENTS"] as $key2=>$value){
?><li>
<a href="/careers/vacancies/<?=$value["ID"]?>">
<?=$value["NAME"];?>
</a>
<li><?php
}?>
Check the CNC settings of the infoblock and the catalog component that will display these sections.
Also, you are doing something weird. Why with catalog.section.list a list of elements? If this menu should be with sections and products, then I can throw off the component for forming the menu.
Or show at least how you get the list of elements. If 'DETAIL_PAGE_URL' is passed to $arSelect and the traversal is done with GetNext rather than Fetch, then you should already have the correct link in the array, formed according to the infoblock CNC settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question