Hi!
I have an admin module MyModule which is next to Pages, Setup, Modules,... in the main menu. I would like to hang submenu items under it that execute ___executeSubmenu1(), ___executeSubmenu2(), etc.
I have found that it can be done by adding a subpage with e.g. name submenu1, template admin and process MyModule. A submenuitem then appears, but when I select the submenu it still executes ___execute() instead of ___executeSubmenu1(). The crazy thing is that the url ../processwire/mymodule/submenu1/submenu1 (so 2x submenu1) then does execute ___executeSubmenu1().
I also tried using navItems in getModuleInfo(), but I don't see anything from that in the menu.
In between all my attempts I always do an uninstall/install and Modules/Refresh. Unfortunately to no avail.
It's probably a small error on my side, but I just don't see it.... Can anyone give me a little hint to investigate further? I would be very happy with that.
Regards, Douwe.