Modify ↓
#12319 closed enhancement (duplicate)
TitleIndex macro: Plugin custom features / sort modes
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | Macro TitleIndex |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be great if Trac would allow plugins to add new features to core macros like TitleIndex
. This should allow plugins to implement things that are maybe out-of-scope for Trac core like custom sort modes for:
- Dates / month names (patch)
- Version numbers. For example on pages like wiki:TracDev/ReleaseNotes the order should be:
- 0.1, 0.2, 0.9, 0.10, 1.0, 1.1, 1.9, 1.10, 1.11
- not 0.1, 0.10, 0.2, 0.9, 1.0, 1.1, 1.10, 1.11, 1.9
Attachments (0)
Note:
See TracTickets
for help on using tickets.
I'm not sure how we could allow plugins to add new features. You can inherit from
TitleIndex
macro and create your own custom macro.Duplicate of #10323. Patch is the same as what you posted to that ticket.