provide option for legacy ID format

Created on 3 April 2022, about 2 years ago
Updated 8 February 2024, 5 months ago

Problem/Motivation

D7 sites with "tableofcontents" module generate IDs which preserve case, and replace spaces with underscores. This module generates IDs which convert to lower case and replace spaces with hyphens. Sites migrated from D7 may have numerous internal links to the "tableofcontents" style IDs.

Proposed resolution

Provide an option for toc_api to generate IDs consistent with those generated by D7 "tableofcontents" module so that internal links in migrated content still work.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)

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.

  • πŸ‡¬πŸ‡§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)

    I think the latest patch is basically usable and we have used in production for over a year, so setting to needs review. There are edge cases where it will not do everything a user wants, but that is not a bug.

Production build 0.69.0 2024