Should the option "number_path" control to display the numbers in headings rather than only the "number_type" option?

Created on 6 March 2025, about 1 month ago

Problem/Motivation

I have set the option number_path to false because I thought that would control the entire display of the numbers in headings. I want to keep the decimal option for the ToC-Block but dont want the numbers displayed in the headings.

If that is the intended behavior we need another condition in the template_preprocess_toc_header hook.

Steps to reproduce

Set number_type to decimal
Set number_path to false

Check the rendered headings. Nothing change if number_path is true or false

Proposed resolution

Clarify the intended behavior. Add $options['number_path'] as AND condition.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany sunlix Wesel

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

Comments & Activities

Production build 0.71.5 2024