By geeloo on
Hi,
Is there a way to display tabs like a classic menu structure (like the default navigation menu for instance, with submenus directly placed after the parent item) ? It could allow me to create a "local tasks" block.
For instance on admin/access/rules I would have a block which displays :
-(leaf)permissions
-(leaf)roles
-(expanded)access rules(active)
-(leaf)list
-(leaf)add rule
-(leaf)check rules
On api.drupal.org, i see :
theme_menu_local_tasks : Returns the rendered local tasks. The default implementation renders them as tabs.
Can I override the default implementation ? If so where can i find some tips on writing the code ?
Or is there a way to customize it in the theme directly ?
Comments
Some code
In case someone is interested, here's what I put in my "local tasks" block.
It probably needs optimization but it works on 4.7.2.
using CSS to over ride display behavior
I don't have enough expertise to say for sure, but I think what you need is to over ride the CSS that dictates the display of the local tasks items.