A
A
Alex2016-03-24 21:07:59
1C-Bitrix
Alex, 2016-03-24 21:07:59

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

1 answer(s)
S
Sergey, 2016-03-24
@astrodeep

echo  '<h4><a href="'. $arSect['SECTION_PAGE_URL'].'">'.$arSect['NAME']."</a></h4>";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question