Opened 11 years ago

Closed 11 years ago

# No args doesn't show TOC for current page

Reported by: Owned by: anonymous Alec Thomas normal TocMacro normal

### Description

Docs state:

If no arguments are given, a table of contents is generated for the
current page, with the top-level title stripped


but it appears to show the TOC for WikiStart, not the current page

### comment:1 Changed 11 years ago by Alec Thomas

Works for me. See XmlRpcPlugin.

There is however a bug where the WikiStart TOC is shown when you preview during edit, but once you save, the correct TOC is displayed.

### comment:2 Changed 11 years ago by Alec Thomas

Resolution: → fixed new → closed

Unfortunately the wiki.page_name HDF variable value is not available during preview, so there is no way to obtain the current page. I've added a kludge that simply doesn't draw the TOC during preview. See [575].

### Modify Ticket

Change Properties