Generate a block with the Automatic Anchors in the fashion of a page outline?

Created on 24 August 2023, over 1 year ago

This is a very handy module. I was wonder if there were plans to also introduce a block that contains links to all the automatic anchors on the page which could be placed in the sidebar, thus providing an easy way of navigating long pages?

Bootsrap does a very good job at this https://getbootstrap.com/docs/5.3/utilities/spacing/ (on the right hand side)

✨ Feature request
Status

Active

Version

2.1

Component

User interface

Created by

πŸ‡¦πŸ‡±Albania elvin - albania drupal developer

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

Comments & Activities

  • πŸ‡ΊπŸ‡ΈUnited States konfuzed Atlanta, GA

    Since this module generates the anchor links dynamically after a page load, I don't see how we'd get a Drupal block that would be of any use.

    Are you thinking instead finding all the anchors on the page and creating a dynamic page-only block to render? That would be possible, but highly targeted based on your theme layout.

    I suppose maybe a script which generates almost a table of contents for the anchors and takes an existing block or area to inject that array back out could be possible. Is that more of what you were thinking?

  • πŸ‡ΊπŸ‡ΈUnited States konfuzed Atlanta, GA
Production build 0.71.5 2024