This project is not covered by Drupal’s security advisory policy.

Overview

Book Tree Menu Screenshot 1

Book Tree Menu enhances the default Drupal Book navigation by transforming it into a more dynamic, user-friendly menu system.

In the standard behavior, users must navigate to a parent page to reveal its child links each submenu only expands when its parent page is visited. This module removes that limitation by allowing users to expand and collapse any submenu directly, without having to load the parent page.

With this enhancement, clicking on a parent item in the left-hand menu will only toggle the visibility of its submenu. It will not navigate to the parent page, which is acceptable since these pages typically serve only as structural containers with no meaningful content beyond Book traversal links.

Credits

This Drupal module is sponsored by the Office of the New York State Comptroller

Requirements

  • Book module

Installation

  1. Download and enable the module
  2. Enable it through the Drupal admin interface or Drush.

Compatibility

Version Drupal Core Book Module Dependency
2.0.x Drupal 10.4.5 Book 1.0.0 (Contributed)
3.0.x Drupal >10.4.5, 11 Book 2.0.0 (Contributed)

Notes

The Book Tree Menu module modifies core behaviors to implement its enhancements:

  • Overrides the bookTreeAllData method in the BookManager using a Drupal style Service Provider.
  • Replaces the book-tree.html.twig template to mirror the structure and behavior of a standard menu.

Similar Modules

Project information

Releases