Forum

Thread tagged as: Question

Pagination for a sub-directory with perch_pages_previous_page

I want to create Next and Previous page links for a site section. I was thinking about use of perch_pages_previous_page and perch_pages_next_page. Can I use these and restrict the links to a specific sub-directory? so that pages outside the sub-directory aren't linked? I cannot see that available as an option here https://docs.grabaperch.com/functions/navigation/perch-pages-previous-page/

Clive Walker

Clive Walker 22 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, but you can limit it to a navgroup.

OK, I'll give that a try. Thanks.