Bitrix Site Manager


 int page_size=10,
 bool show_all=true,
 int page_number=false

The method NavStart splits the result of the selection into pages.

To make avail of the embedded automatic pagewise navigation system, you have to first call this method. After you call it, the scope of methods:

will be constrained to the current page rather than the whole selection. To display the pagewise navigation links, you can call the method CDBResult::NavPrint.


page_size Page size (1 or more). Optional; 10 by default.
show_all Specifies to display all records (display the link All in the navigation bar).
Optional; true by default.
page_number Forces the display of the page with the specified number (disregarding the parameters passed on the URL). Optional; false by default (display as is).

Return Values

No return value.

See Also


$rsBanners = CAdvBanner::GetList($by, $order, $arFilter, $is_filtered);
echo $rsBanners->NavPrint("Banners");
while($rsBanners->NavNext(true, "f_")):
    echo "[".$f_ID."] ".$f_NAME."<br>";
echo $rsBanners->NavPrint("Banners");