<div class="content">
<h3>Отзывы об "<? echo $arResult['NAME'] ?>"</h3>
<hr>
<?
//print_r($arResult["ID"]);
$fastUrlsList = array();
$arSelect = Array("ID", "NAME", "PREVIEW_TEXT", "PROPERTY_SPRAV", "DATE_CREATE");
$arFilter = Array("IBLOCK_ID"=>34, "ACTIVE"=>"Y", "PROPERTY_SPRAV"=>$arResult["ID"]);
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields();
$fastUrlsList[] = array(
"NAME" => $arFields["NAME"],
"PREVIEW_TEXT" => $arFields["PREVIEW_TEXT"],
"DATE_CREATE" => $arFields["DATE_CREATE"],
);
$countOnPage = 3;
//Выбор отзывов
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, array("nPageSize" => $countOnPage), $arSelect);
//Получение html-строку навигации
$arResult["NAVIGATION"] = $res->GetPageNavString("Страницы");
//Вывод html-строки навигации (переключатель между страницами)
echo $arResult["NAVIGATION"];
?>
<div class="row">
<div class="col-3 ">
<h5><strong><? print_r($arFields["NAME"]); ?></strong><BR><small><span class="news-date-time"><?echo $arFields["DATE_CREATE"]; ?><BR><? //echo FormatDate("Q", $arFields["DATE_CREATE"]);?></span></small></h5>
</div>
<div class="col-auto justify-content-left">
<? print_r($arFields["PREVIEW_TEXT"]);?>
</div>
</div>
<hr>
<?
}
?>
$seoItems = array();
$arSectionSelect = array("ID");
$arSectionFilter = array("IBLOCK_ID"=>$arParams["IBLOCK_ID"], "ID"=>$arResult["ID"]);
$dbSectionList = CIBlockElement::GetList(array(), $arSectionFilter, false, $arSectionSelect);
while($arSection = $dbSectionList->GetNext()){
$seoItems = $arSection["ID"];
print_r("$seoItems"); // тут показывает ID элемента, товара
}
$seoItems = array();
$arSectionSelect = array("ID");
$arSectionFilter = array("IBLOCK_ID"=>$arParams["IBLOCK_ID"], "ID"=>$arResult["ID"]);
$dbSectionList = CIBlockElement::GetList(array(), $arSectionFilter, false, $arSectionSelect);
while($arSection = $dbSectionList->GetNext()){
$seoItems = $arSection["ID"];
print_r("$seoItems"); // тут показывает ID элемента, товара
}
$fastUrlsList = array();
$arSelect = Array("ID", "NAME", "PREVIEW_TEXT", "SPRAV");
$arFilter = Array("IBLOCK_ID"=>34, "ACTIVE"=>"Y", "SPRAV"=>$seoItems);
$res = CIBlockElement::GetList(array("SORT"=>"ASC"), $arFilter, false, false, $arSelect);
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields();
$fastUrlsList[] = array(
"NAME" => $arFields["NAME"],
"PREVIEW_TEXT" => $arFields["PREVIEW_TEXT"],
);
print_r($arFields["NAME"]);
print_r($arFields["PREVIEW_TEXT"]);
}