P
P
pavelmosin2019-08-09 11:06:58
1C-Bitrix
pavelmosin, 2019-08-09 11:06:58

Bitrix. system.pagenavigation. How to pass your parameters?

Good afternoon.
There are several infoblocks of the same type, which are reasonable to display through the same news component.
But according to the condition, each infoblock in the pagination has its own text value in the button.
"Next Article", "Next News", "Next Gallery"....
How can this be implemented?
I tried to add my parameter with a text value to news and pass it to news.list, but it didn't work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ainur Valiev, 2021-07-07
@vaajnur

in the component you pass the parameter PAGER_TITLE and in the template you get
$arParams['NAV_TITLE']

Y
Yaroslav Alexandrov, 2019-08-09
@alexyarik

You can use different system.pagenavigation templates and change language phrases:
$MESS["round_nav_back"] = "Back";
$MESS["round_nav_forward"] = "Forward";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question