Modify

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: Alec Thomas
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release:

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

Attachments (0)

Change History (2)

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
Status: newclosed

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
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.