Loading...
 
Skip to main content

Titles (headers) in FADE plugin call content are included in table of contents (maketoc)

Status
Open
Subject
Titles (headers) in FADE plugin call content are included in table of contents (maketoc)
Version
12.x
15.x
18.x
19.x
9.x
Category
  • Bug
Feature
Wiki Plugin (extends basic syntax)
Wiki Syntax (text area, parser, external wiki, etc)
Resolution status
New
Submitted by
Philippe Cloutier
Lastmod by
Philippe Cloutier
Rating
(0)
Description

When a wiki syntax field calls maketoc and the FADE plugin, the table of contents generated may contain bogus entries at the beginning. All the titles in the body of any call to FADE are taken into consideration by maketoc.

This bug is very similar to Table of contents entries (maketoc) in wrong order when wiki pages are included.

Example


With the following field content, the TOC contains 2 headers, instead of just "Normal header":

Copy to clipboard
{maketoc} ! Normal header This is a test page for the FADE plugin. {FADE(label=Label)} !! Header which should not be in the TOC Lorem ipsum... {FADE}
Solution
The contextual parser (implemented with the Parsable class) should make a solution to this realistic.
Importance
3
Easy to solve?
3
Priority
9
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6880
Created
Tuesday 23 October, 2018 21:54:50 UTC
by Philippe Cloutier
LastModif
Tuesday 23 October, 2018 21:56:52 UTC


Show PHP error messages