Forum

Thread tagged as: Question, Api

How do I only show section navigation if more than one page

I have created a sub navigation in the same way as your "section" example in the docs. Is there a way to only show the navigation if there is more than one page?

I would use <perch:if> but I'm not sure what I could put a match against in the navigation function?

Thanks

Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

The only thing I can think of is to get the navigation with skip-template, count the results before calling it without skip-template.