dokuwiki-template-bootstrap3 icon indicating copy to clipboard operation
dokuwiki-template-bootstrap3 copied to clipboard

[Set-Up-Conflict] TOC config-settings

Open Michaelsy opened this issue 6 years ago • 3 comments

Description

There are two different ways to limit the depth of the TOC: maxtoclevel (DokuW standard) and yours: tocCollapseSubSections

So far I'm understand your limiting-functionality the two parameters for the same behavior makes no sense. And sometimes makes users confused. (BTW: With maxtoclevel the TOC-depth can set in ~~5 different steps~~ 6 different steps (incl. 0). Yours only 2.)

Expected behavior: If maxtoclevel is set to 5 the TOC should show (by default) the entire TOC

Actual behavior: If maxtoclevel is set to 5 the TOC shows (by default) only 2 header levels. (The user assumes this is a bug.)

Expected functionality: Two parameters should not conflictive define the same behavior.

IMHO tocCollapseSubSections should be removed from Config-Settings and/or at least tocCollapseSubSections should be by default 0.


👍 Thanks for programming the template!!

Michaelsy avatar May 01 '18 21:05 Michaelsy

Similar issue: tocCollapsed = 1 This already can be configured by maxtoclevel = 0

Michaelsy avatar May 02 '18 06:05 Michaelsy

Sorry I'm confused by this. I am using the bootstrap3 template and this issue seems to remain. I cannot get beyond the second level even if I set the maxtoclevel to 5. Any solution?

TZJinzo avatar Nov 24 '20 01:11 TZJinzo

Any solution?

Try out the settings of the template, especially: tocCollapseSubSections .

- Michael Sy.

Michaelsy avatar Nov 24 '20 13:11 Michaelsy