How do I create a pagination in a layout file? #854
-
Hello! Unfortunately I have a question again. I have installed a blog. This blog is displayed normally on the
The header of the
The header of the
The posts in my
My problem is, that the pagination does not work.
I hope I have not forgotten anything important. 😬 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are 50% there, just call Layout file for showing latest pages with pagination:
|
Beta Was this translation helpful? Give feedback.
You are 50% there, just call
layout("pagination")
with paginated pages. When you call it with pages that have not been paginated, it doesn't know what to do. Make a page collection, store it in a variable, use the variable in the foreach loop and the pagination.Layout file for showing latest pages with pagination: