Forum
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
The only thing I can think of is to get the navigation with
skip-template
, count the results before calling it withoutskip-template
.