Tocify as a field

Created on 27 November 2020, over 3 years ago
Updated 18 September 2023, 10 months ago

Problem/Motivation

Blocks have a lot of limitations in Drupal relative to nodes, for example if a user needs to render a toc on different pages with different configurations for theme, context, selector etc. it would be painful to create blocks and use conditions for each one and difficult to manage changes going forward. As a field on the node a user could just edit the node and change the configurations as desired for that node.

Proposed resolution

Create a tocify field that allows users to select the desired configuration including enable/disable. Also, admins should be able to configure default settings and select which settings are available to the end user.

User interface changes

  • New field type tocify
  • New field widget tocifyWidget
  • New field formatter tocifyFormatter
✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada joel_osc

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.

  • First commit to issue fork.
Production build 0.69.0 2024