S
S
ssrdop2017-04-24 11:18:29
PHP
ssrdop, 2017-04-24 11:18:29

How to specify a pagination template in Bitrix?

There is a code that calls products at a discount

$result = CCatalogDiscount::GetDiscountProductsList(array() , array(">=DISCOUNT_ID" => 1) , false, array("nPageSize" => 20), array())

In the place of the code where the pagination should be displayed, I write the following:
echo $res->NavPrint('', true, 'something, '/bitrix/templates/inner/components/bitrix/system.pagenavigation/innerpagination/template.php');

But nothing is output. More precisely, if I write something, it will seem. But the non-pagination output code itself does not work.
Why is $arResult = Null. Although I used the same template in the "catalog" component and everything worked fine.
If I just call the function
$res->NavPrint();
, then the standard pagination is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kudryashov, 2017-04-24
@ssrdop

Missing quote after something.
GetDiscountProductsList returns the result in $result and NavPrint is called from $res

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question