J
J
jecer2018-05-10 14:04:14
MODX
jecer, 2018-05-10 14:04:14

How to fix pdoPage pagination | modx revo?

Welcome all!
Made a conclusion of articles, code

[[!getPage? &elementClass=`modSnippet` &element=`getResources`&
parents=`2` &tpl=`articleTpl` &limit=`5`&
includeTVs=`1` &hideContainers=`1` &pageLimit=`99` &
pageNavVar=`page.nav`]] [[+page.nav]]
and pagination moved sideways, and it has 4 buttons, all lead to page 2 (except 1)
tried to find a solution, but did not find it
5af425dd01ad8260142885.png

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
display: block, 2018-05-10
@jecer

Not pdoPage, but use getPage.
Assign "Page Navigation Template Properties"
https://docs.modx.com/extras/revo/getpage
Put the +page.nav placeholder in a different block so that it doesn't appear next to the output.
Normal behavior if there are only two pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question