Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3860 closed enhancement (wontfix)

Consider "Negotiating" suffixes

Reported by: izzy Owned by: gotoh
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 6 years ago by coderanger

  • Keywords TracWikiNegotiatorPlugin TocMacro removed
  • Resolution set to wontfix
  • Status changed from new to 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 6 years ago by izzy

  • Component changed from TocMacro to TracWikiNegotiatorPlugin
  • Resolution wontfix deleted
  • Status changed from closed to 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 6 years ago by izzy

  • Owner changed from coderanger to gotoh
  • Status changed from reopened to new

comment:4 Changed 6 years ago by coderanger

  • Component changed from TracWikiNegotiatorPlugin to TocMacro
  • Resolution set to wontfix
  • Status changed from new to closed

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

comment:5 Changed 6 years ago by izzy

OK - done.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from gotoh. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.