Opened 4 years ago
Closed 4 years ago
#4521 closed enhancement (fixed)
PageOutline support
| Reported by: | weltweitehrlich | Owned by: | martin_s |
|---|---|---|---|
| Priority: | normal | Component: | NumberedHeadlinesPlugin |
| Severity: | normal | Keywords: | |
| Cc: | rjollos | Trac Release: | 0.11 |
Description
Using PageOutline marco on a wiki page like the example of NumberedHeadlinesPlugin will only generate the table of content for trac standard headines. Can you modify your plugin or provide you own macro to generate a TOC for numbered headlines as well?
Attachments (1)
Change History (9)
comment:1 Changed 4 years ago by martin_s
comment:2 Changed 4 years ago by JoshuaH
I've attached a patch that adds PageOutline support to the NumberedHeadlinesPlugin.
comment:3 Changed 4 years ago by rjollos
- Cc ryano@… added
comment:4 Changed 4 years ago by rjollos
- Cc rjollos added; ryano@… removed
comment:5 Changed 4 years ago by anonymous
Seems like the functionality of the PageOutline macro is close enough to that of the TOC macro that hopefully the patch could be slightly modified to make the TOC macro work with Numbered Headlines. See Ticket #5241.
comment:6 Changed 4 years ago by anonymous
When the PageOutline macro is used with the following arguments, the numbering occurs twice:
[[PageOutline(1-100,Table Of Contents,inline)]]
Table Of Contents 1. 1. Purpose 2. 2. Scope 3. 3. Definitions 4. 4. Reference Documents 5. 5. Responsibilities
comment:7 Changed 4 years ago by martin_s
- Status changed from new to assigned
I applied the patch numberedheadlines-outline.diff in [6846].
comment:8 Changed 4 years ago by martin_s
- Resolution set to fixed
- Status changed from assigned to closed


I have to check how the PageOutline macro is programmed. It probably scans for the === of the headlines, so changing the NumberedHeadlinesPlugin won't help. I think a new macro must be written, ie. a modified copy of PageOutline.
I don't have much time at the moment. I will have a look at this when I find the time.