Opened 11 years ago

Closed 11 years ago

#263 closed defect (fixed)

No args doesn't show TOC for current page

Reported by: anonymous Owned by: athomas
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release:


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

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by athomas

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 athomas

  • Resolution set to fixed
  • Status changed from new to 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].

Add Comment

Modify Ticket

as closed The owner will remain athomas.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.