Ticket #1784 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

[patch] Various improvements to TOC macro for 0.11

Reported by: osimons Assigned to: coderanger
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Enclosed is a patch that:

  • Accepts wildcard (ike 'Trac*') as input for pagename (will close #480).
  • Respects notitle argument also for titleindex only making it a list of the page names.
  • For empty pages and titleindex, it will add all pages instead of just the current page (a much more useful title index...)
  • Changes default heading to 'Page Index' if it is a titleindex being rendered (and it is not replaced by another heading as argument, or noheading is passed).
  • Properly highlights the current page if it exists in a title index list.
  • Does some updates to resolve the various FIXME: and TODO: items in the code.
  • Updates documentation to reflect these changes, and also removes a piece information that has not been true for some time.

As far as I can tell, these changes are all very gentle with regards to existing uses of the macro - I don't think they will be affected negatively.

Attachments

tocmacro_various_011dev-r2460.diff (6.6 kB) - added by osimons on 07/13/07 10:10:48.
Patch for r2460 - various improvements to TOC macro.
tocmacro_various_011dev-r2794.diff (9.7 kB) - added by osimons on 11/19/07 03:06:19.
Patch updated for new resource / context APIs + supporting new fine-grained security + reviewed all code again.

Change History

07/13/07 10:10:48 changed by osimons

  • attachment tocmacro_various_011dev-r2460.diff added.

Patch for r2460 - various improvements to TOC macro.

07/13/07 11:27:05 changed by osimons

  • summary changed from [path] Various improvements to TOC macro for 0.11 to [patch] Various improvements to TOC macro for 0.11.

Oops. Typo in title. Updated.

11/19/07 03:06:19 changed by osimons

  • attachment tocmacro_various_011dev-r2794.diff added.

Patch updated for new resource / context APIs + supporting new fine-grained security + reviewed all code again.

11/20/07 02:21:06 changed by osimons

(In [2801]) TocMacro: Various improvements + support for latest 0.11dev with context refactoring + fine-grained permissions.

For details see #1784 - some highlights:

  • Wildcard support on page names
  • titleindex for no pages will return all pages
  • and, see ticket for more...

11/20/07 02:35:54 changed by osimons

  • status changed from new to closed.
  • resolution set to fixed.

Commit done. Ticket closed.


Add/Change #1784 ([patch] Various improvements to TOC macro for 0.11)




Change Properties
Action