E
E
Eugene M.2018-12-08 17:55:56
1C-Bitrix
Eugene M., 2018-12-08 17:55:56

How to display the name of the section and a link to it in 1C-Bitrix?

This displays a link to the current section.

<?
CModule::IncludeModule("iblock");
$res = CIBlockSection::GetByID($arResult['IBLOCK_SECTION_ID']);
$ar_res = $res->GetNext();
?>
<a href="<? echo $ar_res['SECTION_PAGE_URL']; ?>">

please tell me how to display a link to the next section and the previous one!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-12-08
@vaajnur

Get all sections, and then adjacent ones from the current one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question