Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#3860 closed enhancement (wontfix)

Consider "Negotiating" suffixes

Reported by: izzy Owned by: Shun-ichi Goto
Priority: normal Component: TocMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

We have the TracWikiNegotiatorPlugin installed, which supports serving pages depending on their extension and the users language preference. Now one of the things not conforming to this is the TocMacro. What we would like to see is best explained by examples:

Say we have the Wiki articles Give, Give.en, Some, Example and Example.en - and I am using the TocMacro in Give.en as [[TOC(Give,Some,Example)]]. It would be nice if the TocMacro now first checks the extension of the current page (.en), and thus includes the other matching pages (if available), and only falls back for those who don't have it. So in this example, it would index Give.en, Some, and Example.en

Same applies especially to things like [[TOC(example/*]] (which may a bit more difficult to realize, since no page is mentioned explicitly), and of course the other way round (if the page calling TocMacro has no suffix, pages without suffix are to be preferred).

Of course, all these things are only needed to be considered when the TracWikiNegotiatorPlugin is in use.

Attachments (0)

Change History (5)

comment:1 Changed 16 years ago by Noah Kantrowitz

Keywords: TracWikiNegotiatorPlugin TocMacro removed
Resolution: wontfix
Status: newclosed

Far too much of a special case. The negotiation plugin should consider offering its own TOC system, possible subclassing from TocMacro.

comment:2 Changed 16 years ago by izzy

Component: TocMacroTracWikiNegotiatorPlugin
Resolution: wontfix
Status: closedreopened

OK - so I pass it on there (sorry to re-open - but the description stays the same, so I thought this is the best way).

@gotoh: I hope you will accept this?

comment:3 Changed 16 years ago by izzy

Owner: changed from Noah Kantrowitz to Shun-ichi Goto
Status: reopenednew

comment:4 Changed 16 years ago by Noah Kantrowitz

Component: TracWikiNegotiatorPluginTocMacro
Resolution: wontfix
Status: newclosed

Given that I don't won't be CCd on every change to this ticket, open a new one.

comment:5 Changed 16 years ago by izzy

OK - done.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Shun-ichi Goto.
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.