I'm using showmenu2 to show section menus on my site. Everything's great, except that I want to put the section title above the menu. So I tried this
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB,
'[if(id==parent){ [page_title] }]','','','');
show_menu2(1,1,1);
Works great on the subpages, but no heading shows on the top level page.
I want something like
About Us
- Our Approach
- Staff
- Testimonials
If I put try to test it for parent and use this code instead:
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB,
'[if(id==parent){ [page_title] }else{ [page_title] }]','','','');
the top level works perfectly, but I get both the section title and the page title above the list on the subpages.
What am I doing wrong? I checked the documentation, but no examples are formatted like this. I know I must be close, but I can't seem to get it working.
Thank you.