Opened 10 years ago

Closed 10 years ago

# PageOutline support

Reported by: Owned by: weltweitehrlich Martin Scharrer normal NumberedHeadlinesPlugin normal Ryan J Ollos 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?

### comment:1 Changed 10 years ago by Martin Scharrer

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.

### comment:4 Changed 10 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; ryano@… removed

### comment:5 Changed 10 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 10 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 10 years ago by Martin Scharrer

Status: new → assigned

I applied the patch numberedheadlines-outline.diff in [6846].

### comment:8 Changed 10 years ago by Martin Scharrer

Resolution: → fixed assigned → closed

(In [6852])

Added config file options to select if the headline should be numbered in an outline (like PageOutline or TocMacro) and if CSS should be used for the numbering or not. Fixes #5241 and #4521.