Priority: Normal
Current State: Needs Developer
Released In: n/a
Target Release: n/a
I Like to set up folding tables of contents like this:
%TREEBROWSER{"thread" title="*Contents*"}%
%TOC{}%
There's a bug that appears if the page doesn't actually have any section headers that are allowed to show in the TOC.
Example: With this code:
---+!! %SPACEOUT{ "%TOPIC%" }%
%TREEBROWSER{"thread" title="*Contents*"}%
%TOC{}%
---++!! %FORMFIELD{"Temperament"}%
---+!! %FORMFIELD{"Suit"}%
| *Temperament* | A |
| *Suit* | B |
| *Color* | Green |
| *Alternate Names* | X, Y, Z |
TreeBrowser decides to use the
TABLE as its data.
- screenshot:
If I include a single header to work with, the problem goes away.
---+!! %SPACEOUT{ "%TOPIC%" }%
%TREEBROWSER{"thread" title="*Contents*"}%
%TOC{}%
---++!! %FORMFIELD{"Temperament"}%
---+!! %FORMFIELD{"Suit"}%
| *Temperament* | A |
| *Suit* | B |
| *Color* | Green |
| *Alternate Names* | X, Y, Z |
---++ Header
- screenshot:
I could
almost understand this behaviour if there were a bullet list somewhere on the page.
However
- There are multiple blank lines after the code immediately following TREEBROWSER.
It should stop looking for a list at the first blank line.
- There are no lists anywhere on the page. TREEBROWSER is supposed to operate on bullet (or numbered) lists.
- That's a table. TREEBROWSER is not supposed to operate on tables.
- It's operating on the rendered HTML of the table. That's just weird.
--
VickiBrown - 05 Mar 2015