Примерно так:
if (!\CModule::IncludeModule('catalog'))return;$arFilter = array('IBLOCK_ID' => self::$IB_CATALOG,'IBLOCK_SECTION_ID' => self::$IB_SECTION,'ACTIVE' => 'Y',// 'INCLUDE_SUBSECTIONS' => 'Y',);$arItems = array();$dbItems = \CIBlockElement::GetList(array(), $arFilter, false, false, array('ID','IBLOCK_ID','IBLOCK_SECTION_ID','NAME','CODE','DETAIL_PAGE_URL',));$i=0;while($arItem = $dbItems->Fetch()) {$arItem['URL'] = \CIBlock::ReplaceDetailUrl($arItem['DETAIL_PAGE_URL'], $arItem, false, 'E');$arItems[] = $arItem;}
<?CModule::IncludeModule("iblock");$BID = 2; //ID инфоблока$SID = 2; //ID секции$result = CIBlockElement::GetList(Array("ID"=>"DESC"),Array("IBLOCK_ID"=>IntVal($BID), "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y","SECTION_ID"=>$SID),false,Array("nPageSize"=>15),Array("ID", "NAME", "DETAIL_PAGE_URL"));while($arResultmy = $result->GetNext()){echo '<a href="'.$arResultmy["DETAIL_PAGE_URL"].'">'.$arResultmy['NAME'].'</a>';}?>