Цитата |
---|
Dmitry Ban пишет:
"nTopCount" => 40, "nPageSize" => 20, ? |
Код |
---|
/* we realise sample elements infoblock */ $res = CIBlockElement::GetList($arOrder , $arFilter, false , Array("nTopCount" => 40, "nPageSize"=>$arParams["PAGER_COUNT"], "iNumPage"=>$ajaxpage , "bShowAll"=> false), $arSelect); /* we realise paginal navigation */ $arResult["NAV_STRING"] = $res->GetPageNavStringEx($navComponentObject, "", $arParams["PAGER_TEMPLATE"]); |
Цитата |
---|
Виктор Курогашев пишет:
Попробуйте функцию GetIBlockSectionList |
Код |
---|
$arElementID = array(); $res = CIBlockElement::GetList( false, $arFilter, false, array('nTopCount' => 40), array('ID') ); while ($el = $res->Fetch()) $arElementID[] = $el['ID']; if (count($arElementID)) $arFilter['ID'] = $arElementID; $res = CIBlockElement::GetList( $arOrder, $arFilter, false, array('nPageSize' => 20), $arSelect ); |