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

Give editors control over how individual pages appear in your book
navigation, without touching templates or asking a developer.

What it does

  • Hide a page from the book menu while keeping it in the
    book. Its URL, position in the outline, breadcrumb and previous/next links
    stay the same. Hiding a page also hides the pages beneath it in the menu.
  • Customize individual menu items with a CSS class, an ID,
    a tooltip (title), an "open in new window" setting, or your own custom
    attributes such as tracking labels.

When to use it

  • Landing pages, appendices or utility pages that belong in the book but not
    in its navigation.
  • Highlighting an item, for example with a "new" badge or call-to-action
    style.
  • Opening a particular link in a new window.
  • Adding tracking or testing attributes to specific menu links.
  • Letting content editors do all of the above themselves, under a
    permission.

How it works

  1. Install the module with Composer and enable it.
  2. Choose which attributes are available (the defaults are class, ID, title
    and target) at Administration > Structure > Books > Book menu
    options
    .
  3. Give your editors the "Edit book menu item options" permission.
  4. Editors can set the options on the page's edit form (under Book
    outline
    ), on the page's "Menu options" tab, or with the "Visible"
    checkboxes on the book's outline page.

Similar modules

Menu Link Attributes offers similar per-link options for regular menus. This
module does the same for book menus.

Supporting organizations: 

Project information

Releases