Add option to disable truncation of the book label

Created on 17 July 2025, 13 days ago

Problem/Motivation

When working with views on the node page, nodes with titles longer than 30 characters are truncated by default with no means of viewing the full name in the UI.

There's also issues with the previous fix where the newly introduced $truncate parameter wasn't passed recursively or through the BookManager proxy class.

Steps to reproduce

1. Create node with title "nodeeeeeeeeeeeeeeeeeeeeeeeeee 11"
2. Create node with title "nodeeeeeeeeeeeeeeeeeeeeeeeeee 12"
3. Add them both to books, then try to reference them. It's hard to distinguish which of the two nodes you are interacting with.

Proposed resolution

The default behaviour should probably to have this off, but as originally proposed in ✨ BookManager::recurseTableOfContents truncate length is hard coded Needs work , we can introduce an option to provide backwards compatibility for sites that would rather have it truncated.

Remaining tasks

Provide issue fork.

User interface changes

New Book setting to disable truncation.

API changes

N/A

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024