Modify

Opened 13 years ago

Closed 9 years ago

#9797 closed enhancement (fixed)

Add configurable prefix for linking tags to wiki pages

Reported by: trachacks@… Owned by: Steffen Hoffmann
Priority: normal Component: TagsPlugin
Severity: normal Keywords: wiki page
Cc: Ryan J Ollos Trac Release: 0.12

Description (last modified by Steffen Hoffmann)

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@… 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by trachacks@…

comment:1 Changed 13 years ago by Steffen Hoffmann

Cc: Ryan J Ollos added; anonymous removed
Description: modified (diff)
Keywords: wiki page added

corrected example according to better reflect request's intention

comment:2 Changed 13 years ago by Steffen Hoffmann

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 13 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 13 years ago by Ryan J Ollos

I think wiki_page_prefix is appropriate given the existing wiki_page_link option.

comment:5 Changed 11 years ago by Steffen Hoffmann

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 9 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

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.

Modify Ticket

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