We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Question

Is there a way to test for a navgroup?

Is it possible to detect whether a page is part of a navgroup either in templates or page functions?

e.g.

if this page is navgroup: services {
 //do this
} else {
 //do something else
}
Simon Clay

Simon Clay 127 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't think so. A page can be part of any number of navgroups, so it's not just one property you can test - it would require some logic.