Opened 10 years ago

Closed 10 years ago

# Consider "Negotiating" suffixes

Reported by: Owned by: izzy Shun-ichi Goto normal TocMacro normal 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.

### comment:1 Changed 10 years ago by Noah Kantrowitz

Keywords: TracWikiNegotiatorPlugin TocMacro removed → wontfix new → closed

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

### comment:2 Changed 10 years ago by izzy

Component: TocMacro → TracWikiNegotiatorPlugin wontfix closed → reopened

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 10 years ago by izzy

Owner: changed from Noah Kantrowitz to Shun-ichi Goto reopened → new

### comment:4 Changed 10 years ago by Noah Kantrowitz

Component: TracWikiNegotiatorPlugin → TocMacro → wontfix new → closed

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

OK - done.

### Modify Ticket

Change Properties