Include 'is_active' value in book tree items

Created on 21 May 2019, over 5 years ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

Currently, when rendering the book tree, an in_active_trail value is included in the book tree for each item; however, no is_active value is included. As a result, it's not possible to know if a particular item is active. This is useful for applying active states in book navigation.

Proposed resolution

When rending items in the book tree, check if the item belongs to the current page. Make this information available in the template layer.

Remaining tasks

Submit patch

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

Feature request
Status

Needs work

Version

10.1

Component
Book 

Last updated 5 days ago

Created by

🇺🇸United States Chris Burge

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024