Answer the question
In order to leave comments, you need to log in
How to output SECTION_PAGE_URL?
Hello, I can’t figure out how to display SECTION_PAGE_URL data in href
echo $arSect['SECTION_PAGE_URL'];
echo '<h4><a href="">'.$arSect['NAME']."</a></h4>";
<?
$arParams['IBLOCK_ID'] = 15; // ID инфоблока
// подключение модуля инфоблоков
CModule::IncludeModule('iblock');
$sectRes = CIBlockSection::GetList(
array("SORT"=>"ASC"), // сортировка
array("IBLOCK_ID" => $arParams['IBLOCK_ID']), // параметры фильтра
false, // возврат кол-ва элементов в разделе
array('ID','NAME','SECTION_PAGE_URL'), // поля для выборки
false // параметры постраничной навигации
);
while ($arSect = $sectRes->GetNext()){
echo $arSect['SECTION_PAGE_URL'];
echo '<h4><a href="">'.$arSect['NAME']."</a></h4>";
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question