Opened 17 years ago
Closed 16 years ago
#4521 closed enhancement (fixed)
PageOutline support
| Reported by: | weltweitehrlich | Owned by: | Martin Scharrer |
|---|---|---|---|
| Priority: | normal | Component: | NumberedHeadlinesPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Ryan J Ollos | 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 17 years ago by
Changed 17 years ago by
| Attachment: | numberedheadlines-outline.diff added |
|---|
Numbered headlines PageOutline patch
comment:2 Changed 17 years ago by
I've attached a patch that adds PageOutline support to the NumberedHeadlinesPlugin.
comment:3 Changed 16 years ago by
| Cc: | ryano@… added; anonymous removed |
|---|
comment:4 Changed 16 years ago by
| Cc: | Ryan J Ollos added; ryano@… removed |
|---|
comment:5 Changed 16 years ago by
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 16 years ago by
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 16 years ago by
| Status: | new → assigned |
|---|
I applied the patch numberedheadlines-outline.diff in [6846].
comment:8 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → 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.