Skip to content

Parent item (book/chapter) tag classes #5217

@sws-noahdoersing

Description

@sws-noahdoersing

Describe the feature you'd like

As mentioned on https://www.bookstackapp.com/docs/admin/hacking-bookstack/, BookStack sets classes on a page's HTML <body> element depending on which tags are assigned to that page (for a tag "Priority: Critical", the classes tag-name-priority tag-value-critical tag-pair-priority-critical are added).

This is incredibly handy for styling and could be extended to encompass book and chapter (e.g. for a book "Servers" a class like book-servers).

Describe the benefits this would bring to existing BookStack users

Assigning different styles based on book and chapter would improve customization options.

Can the goal of this request already be achieved via other means?

Not that I'm aware of (except tagging everything with book/chapter titles, which isn't practical or maintainable).

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

3 months to 1 year

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions