raffaelj / CpMultiplane

small PHP frontend for Cockpit CMS
MIT License
17 stars 3 forks source link

pagination for sub pages doesn't work if page type detection is "type" #21

Closed raffaelj closed 4 years ago

raffaelj commented 4 years ago

It works, if the sub pages are on the home page without a slug, but not if they are on a different page with a slug.

Example: 10 pages, 2 of type page and 8 of type post, both pages have the same posts

Working: example.com/ - displays first 5 entries below text example.com/page/2 - displays entry 6 to 8 below text

Not working: example.com/blog/ - displays first 5 entries below text example.com/blog/page/2 - 404

If the start page doesn't have posts, example.com/page/2 displays the start page without posts.