Hey Guys,
I'm trying to find a good way to create a sub menu that will display links under 2 conditions:
1. If the current page is top level and has children, display links to the children pages.
2. If the current page is not a top level page but is nested under a top level page that has children then display links to the children of the current page's parent (the current page's siblings).
I understand how to build a navigation bar with drop down items based on the children of top level items but I can't figure out how to build a sub-menu in my template apart from the main navigation bar that will only display the children of the current page if they exist.
So in the case where a user visits the top level "About Us" page with the pages "History" and "Overview" as children, I'd like to detect that this current page has children and then display link to them. Or, in the case where the user visits either the "History" or "
Overview" sub pages, I'd like to detect that this page's parent has children and display links to all those children pages.
Really hoping someone here can give me some guidance on how to code this in the template.
Thanks in advance!