Modify

Opened 17 years ago

Closed 17 years ago

Last modified 13 years ago

#50 closed defect (fixed)

Default behavior incorrect.

Reported by: halkeye@… Owned by: Alec Thomas
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release: 0.8

Description

I just grabbed the svn version using:

svn checkout http://trac-hacks.swapoff.org/svn/tocmacro

I assume that's the same version as on the TocMacro wiki page.

When i installed it, and added the (bracketbracket)TOC(bracketbracket) macro to the page, i got the TOC for the WikiStart page, not the current page.

The Wiki says:

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

One behavior is wrong, Personally i prefer the current page to be shown.

Attachments (1)

TOC.py.diff.txt (447 bytes) - added by halkeye@… 17 years ago.
patch to fix current page problem

Download all attachments as: .zip

Change History (5)

Changed 17 years ago by halkeye@…

Attachment: TOC.py.diff.txt added

patch to fix current page problem

comment:1 Changed 17 years ago by halkeye@…

version: stabletrunk

Also noted that preview doesn't work with page_name, although probably another more complicated issue. (Just learning trac code still)

comment:2 Changed 17 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

(In [111])

  • First version of TocMacro for trunk
  • Fix for finding current page, closes #50
  • Fix for anchor escaping, closes #23

comment:3 Changed 13 years ago by anonymous

Component: TocMacroTimelineRssAuthorPatch
Trac Release: 0.8

comment:4 Changed 13 years ago by anonymous

Component: TimelineRssAuthorPatchTocMacro

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.