Render book navigation as a pseudo-field to change it's position in node

Created on 18 November 2020, about 4 years ago
Updated 17 September 2024, 2 months ago

Problem/Motivation

When a node content type is used as a book page, a book navigation is renderd below the node (talking about the prev/next/up and navigation tree).

There is currently no way from the UI to disable it, or to render it somewhere else. It often makes sense to render it after the body before the comments for instance, but it is not currently possible because comments are a field that can be moved around while book is not.

By enabling book navigation as a display pseudo-field (the prev/next/up and navigation tree), it would make it possible to disable it for the current node (because using book navigation block for instance), or to move it around the node (to move it after body / before comments for instance).

Steps to reproduce

- Enable "book" module
- Create nodes in a book structure using the configured content type
- Aknowledge that you can't move the book navigation around

Proposed resolution

Declare book navigation as a display pseudo-field.

warnings: this pseudo-field makes sense to exist only for book allowed configured node bundles

User interface changes

"Book navigation" will be available as a pseudo field, configurable at /admin/structure/types/manage/{bundle}/display

API changes

None

Data model changes

None

✨ Feature request
Status

Closed: duplicate

Version

2.0

Component
BookΒ  β†’

Last updated 5 days ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡«πŸ‡·France Dom.

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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