local_task_splitter
The Local Task Splitter module provides site administrators with granular control over the placement and rendering of Drupal's local tasks (tabs). It allows you to split tabs into multiple blocks.
Features
The module allows you to group specific local tasks (tabs) into separate blocks instead of having them all in the default "Tabs" block.
- Flexible Splitting: Group tabs by inclusion or exclusion of specific routes.
- Dropbutton Rendering: Optionally render a group of tasks as a space-saving Drupal dropbutton.
- Core Integration: Hide split tasks from the default core local task blocks to avoid duplication.
- Icon Support: Integrates with the UI Icons module to add icons to dropbuttons.
Use this module when you have a page with many administrative tasks that clutter the user interface.
It helps in organizing secondary actions (like "Delete" or "Revisions") into different regions or into a dropdown menu.
Post-Installation
Once installed, follow these steps:
- Configure Splits: Go to Configuration > User interface > Local Task Split (
/admin/structure/local_task_splits) and create a new split configuration by defining which routes to include or exclude. - Place Blocks: Navigate to Structure > Block layout (
/admin/structure/block) and place the Local Task Split Tabs block in your desired region. - Configure Block: In the block settings, select the split configuration you created and choose whether to render it as a dropbutton.
Recommended modules/libraries
- UI Icons: Highly recommended for adding intuitive icons to your task dropbuttons.
Similar projects
While there are other modules that modify how tabs are rendered (like Custom Tabs), Local Task Splitter is unique in its focus on splitting core local tasks into multiple block instances.