R
R
run1822015-06-19 00:53:12
PHP
run182, 2015-06-19 00:53:12

How to get the current page number into a variable when requested in Bitrix?

How to further display the page number, something like echo $page?

CIBlockElement::GetList(array("ACTIVE_FROM" => "DESC"), $arFilter, false, Array("nPageSize" => 8));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Misha Vasilyev, 2015-06-19
@run182

$dbResult = CIBlockElement::GetList(array("ACTIVE_FROM" => "DESC"), $arFilter, false, Array("nPageSize" => 8));
echo $dbResult->NavPageNomer; // Номер текущей страницы
echo $dbResult->NavPageCount; // Количество страниц

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question