[support] secondary local task menu

Matt Connolly matt at cabinetuk.com
Fri Jul 4 16:26:49 UTC 2008


I'm having difficulties with secondary menus.

Basically, I'd like to show some secondary local menus that don't  
relate to a primary local menu.

I assume they can't. In which case, I'd be happy for the primary local  
menu to be shown *only* when the secondary menu is there, even if it  
is redundant.

Let me explain in more detail: here are the pages I want:

groups - lists groups on the site
groups/add - add a new group to the site
groups/list - default local task, alias for "groups"
groups/view/% - view details for a specific group
groups/view/%/list -default secondary local task, alias for "groups/ 
view/%"
groups/view/%/edit - form for editing group
groups/view/%/delete - form for deleting a group

So, when I'm viewing a group (in any group/view/%[/%] page, I'd like  
to see the secondary local task menu. The only way I can achieve the  
secondary menu to appear is to make "groups/view/%" a primary local  
task, which doesn't make any since the "%" doesn't match anything in  
the path "groups", yet it still appears as a local task to that page.  
Another problem is that I get "groups/view/%" twice, in the primary  
local menu and in the secondary local menu thanks to the alias "groups/ 
view/%/list", which is needed to be the default task in the secondary  
local menu.


Any ideas?

-Matt



More information about the support mailing list