ive got a few pages with quite a lot of local tasks; view, list, edit, track etc. and i don't really have enough room across the page for them all to fit.

What I would like is to have the local tasks as a drop down menu instead.

Is there an easy was to do this?

Where do i begin?

Thanks for any advice.

Comments

SamSound’s picture

ok, ive created a block, and added some js to it to make it open and close, similar to a collapsiblock.
And then i added php print theme_menu_local_tasks(menu_local_tasks()); to the block which displays a themed local task list.

So now I have a block of local tasks that acts in a similar way to a dropdown menu.

However my blocks displaying primary and secondary links in the block. But i would like to just show the primary links in the block ive tried print theme_menu_local_tasks(menu_primary_local_tasks()); but it still display both primary and secondary. ive tried just print (menu_primary_local_tasks()); which provides just the primary local tasks, but then they dont theme.

Ive tried every variation I can think of to get a themed primary local tasks block, but only can get primary and secondary, or losing the theme.

How do I get just the primary tasks?

If I cant get just primary tasks, how can I arrange the order of the tasks, and secondly is there an easy way to change every second task into a primary task. For example if im on a user page rather than having edit as a primary task then under that have edit profile and edit account as secondry tasks, I just want edit account and edit profile as to seperate primary tasks.

Thanks for any help

Jeff Burnz’s picture

By memory I think Root Candy theme spits the tasks, take a look. As for the other changes I see some pretty serious module code being written:) Frankly I hate dealing with local tasks in a module, it drives me batty dealing with the menu system.

derekwebb1’s picture

You could try Dropdown Tabs...

Cheers.