Part of the Local ecosystem · 10 projects
This module adds a "show more/less" toggle to local tasks, making it easier to manage lists of options for content like nodes. It allows you to hide less frequently used tasks, change task titles and order, and even remove specific tasks from view.
The Local Tasks More module adds a show more/less tasks toggle to primary or secondary local tasks.
By default, the show more/less tasks toggle is only applied to nodes (i.e., entity.node.canonical), and the node 'Delete' is hidden.
Use Case
Nodes (a.k.a. Content) in Drupal can have too many local tasks.
Only the first few (i.e., View, Edit, Layout, Revisions, and Translate) are used on a daily basis. This module hides less commonly used local tasks (i.e, Usage, Clone, Devel, Convert) and allows the local task title and weight to be altered or remove a local task from display.
Features
- Adds more/less local task toggle to select local task base routes.
- Allows a local task's title and weight to altered.
- Allows a local task to be removed.
- Removes the contextual links from the local tasks block.
Notes
- Generally, only nodes have more than 7 local tasks.
- This module's approach is compatible with any front-end or admin theme that renders local tasks based of Drupal core's default templates (menu-local-tasks.html.twig and menu-local-task.html.twig).
- This module does not rely entirely on JavaScript but instead adds the needed Show more/less task, icon, and classes via the PHP using hook_menu_local_tasks_alter() and hook_preprocess_menu_local_task(), which helps ensures the toggle works as expected.
- The show more/less icon is an inline SVG whose color can be easily changed via CSS. (i.e, .local-tasks-more-toggle svg path {fill: blue;})
Similar Modules
- Admin Local Tasks
Make Drupal (Admin) Local Task links fancier and more accessible for content editors on non-admin routes (front pages) - with minimalistic design and fixed position on left or right side. - Admin Toolbar Tasks
Split off and display administrative local tasks as part of the site Toolbar. - Better Local Tasks
Adds a bit of polish to the local task tabs, by fixed positioning it and adding some icons, and hover animation. - Local Taskbar
Moves your local tasks to an easy to find and consistent place at the bottom of the page. - Sticky Local Tasks
Provides more user-friendly, better, and fancier sticky local tasks. - Tidy Local Tasks
Creates a tidy editorial experience by hiding Drupal's local tasks.
Ask your assistant about Local Tasks More
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Local ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta3 | Pre-release | 10–11 | Sep 17, 2026 | ||
| 1.0.0-beta2 | Pre-release | 10–11 | Nov 18, 2024 | ||
| 1.0.0-beta1 | Pre-release | 9–10 | Nov 14, 2024 | ||
| 1.0.x-dev | Dev | 10–11 | Nov 14, 2024 |