[TOC type="simple"] does not work

Created on 13 January 2025, 16 days ago

Problem/Motivation

The TOC format is supposed to be overrideable using type="something", where "something"is one of the TOC formats.

Unfortunately this does not work.

Steps to reproduce

After having TOC and TOC_filter installed, check your TOC types in /admin/structure/toc. Choose one that is not your default. Let's imagine it's named 'Simple'. Perhaps change it so that it's easily identifiable - for instance use Circle as the numbering type.

Edit a node, add [TOC type="simple"] into the node. Save.

Check the result. Your TOC will not appear.

Proposed resolution

The problem is that while the options are being read, type controls the loading of the option set for the filter, and it's not being taken into account.

Remaining tasks

Some code to be altered.

User interface changes

None.

API changes

None - this should already work and is documented in the Readme.

Data model changes

None.

🐛 Bug report
Status

Active

Version

2.3

Component

Code

Created by

🇬🇧United Kingdom Jeff Veit

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

Comments & Activities

Production build 0.71.5 2024