E
E
Evgeniy Evsyukov2021-11-26 00:53:17
1C-Bitrix
Evgeniy Evsyukov, 2021-11-26 00:53:17

How to make pagination in news.list?

For example, 40 news are displayed on the page, I want 10 to be displayed, and at the bottom of the page there was a numbering, that is, we have 10 news displayed on 1, go to 2, also 10, how to do this with news.list without resorting to a custom solution ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
no_one_safe, 2021-11-26
@venomphp

The component has already prepared pagination for you. In the component settings, specify the number of elements per page and the pagination template. Output in the template.
news.list

R
Roman Morozov, 2021-11-29
@Q_BASIC

In the component call parameters, specify how many news you need on the page, add <?=$arResult["NAV_STRING"]?> to the template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question