Opened 4 years ago

Closed 7 months ago

#9797 closed enhancement (fixed)

Add configurable prefix for linking tags to wiki pages

Reported by: trachacks@… Owned by: hasienda
Priority: normal Component: TagsPlugin
Severity: normal Keywords: wiki page
Cc: rjollos Trac Release: 0.12

Description (last modified by hasienda)

I like the tags linking to wiki pages, but I would very much like them to reside below a certain "folder", or at least let them have a prefix.

For example, I prefer my tag "myTag" to link to wiki:tags/myTag instead of wiki:myTag.

Attached is a patch that adds a new configuration option, wiki_page_link_prefix, which does exactly that. The only place it doesn't patch (to my knowledge) is the "Create Wiki page" link in the tag_view.html template, because I didn't know how to do that.

Attachments (1)

tractags-wiki_page_link_prefix.patch (1.8 KB) - added by trachacks@… 4 years ago.

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by trachacks@…

comment:1 Changed 4 years ago by hasienda

  • Cc rjollos added; anonymous removed
  • Description modified (diff)
  • Keywords wiki page added

corrected example according to better reflect request's intention

comment:2 follow-up: Changed 4 years ago by hasienda

Yes, I do understand, and while some exactly like the current behavior, some may appreciate tags wiki page separation into a configurable common wiki name-space.

Actually making the link configurable shouldn't be too hard, but I hesitate to go with the proposed option name. I feel more comfortable with wiki_page_prefix instead - shorter is better. Comments?

comment:3 in reply to: ↑ 2 Changed 4 years ago by trachacks@…

Replying to hasienda:

I feel more comfortable with wiki_page_prefix instead - shorter is better. Comments?

None by me, in case you're asking. Mine was merely a suggestion. wiki_page_prefix should be pretty unambiguous.

comment:4 Changed 4 years ago by rjollos

I think wiki_page_prefix is appropriate given the existing wiki_page_link option.

comment:5 Changed 2 years ago by hasienda

In [13848]: Add configurable prefix for tag wiki pages, refs #9797.

These changes follow a contributed patch, and reduced debug logging for wiki macros and a few other minor changes are added on-top.

(added manually, since the ticket commit updater failed this time)

comment:6 Changed 7 months ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

In 14945:

0.8: Tag 0.8 release

Fixes #1304, #1344, #3660, #3891, #9064, #9797, #11661, #11690, #11695, #11888, #11950, #11954, #11968, #12202, #12292, #12434, #12486.

Refs #12415.

Add Comment

Modify Ticket

as closed The owner will remain hasienda.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.