Configuring a custom book block also alters the core book navigation block

Created on 21 December 2022, about 2 years ago
Updated 4 December 2023, about 1 year ago

Problem/Motivation

When a custom book block is configured, it appears to also affect the navigation block provided by the core book module. The most problematic thing about this was just that it made me consider removing the custom book block module, thinking that I did not need it anymore. Upon further investigation, I realized that I did in fact still need this module. I imagine that this could happen to other people, and if this can be fixed, it might save some trouble and confusion for some kind module users out there.

Steps to reproduce

  1. Create a book with multiple levels of hierarchy
  2. Place a book navigation block (provided by core book module)
  3. See one of the pages and see that only one level of hierarchy shows in the book navigation menu (per the limitations of the block provided by the core module)
  4. Install/enable this module
  5. Place a custom book block can show multiple levels of hierarchy
  6. See that the custom book block AND the core book navigation block display multiple levels of hierarchy

Proposed resolution

Given that these are separate blocks, I would expect that configuring the block provided by this module would not affect the block provided by the core book module, but it does.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

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

Comments & Activities

Not all content is available!

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

  • πŸ‡©πŸ‡ͺGermany simonbaese Berlin

    This is by design because the custom book block extends the core book block. Do you think this should change? Also, in ✨ Dynamic book menu/book menu default configuration options Postponed: needs info we are discussing to add an option to use the default book block behavior. Maybe this will relieve this issue.

  • πŸ‡ΊπŸ‡ΈUnited States MegaKeegMan

    No I do not think this should change. It makes complete sense. And yes, I think this feature will help. I am not sure how it will be implemented, and won't bring that discussion here, but I can still imagine scenarios in which people experience the same confusion that I did, as long as the core block continues to be affected by the configuration provided by this module.

    I was considering that it might be more intuitive if, instead of creating a new block, this module just modifies the core one. Though I understand that this approach might present other unwanted challenges, and so I am not necessarily recommending this either. Just putting the idea out there.

  • Status changed to Closed: works as designed about 1 year ago
  • πŸ‡©πŸ‡ͺGermany simonbaese Berlin

    Thanks for the feedback.

Production build 0.71.5 2024