Modify

Opened 2 years ago

Last modified 6 days ago

#9797 new enhancement

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

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by trachacks@…

comment:1 Changed 2 years ago by hasienda

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

corrected example according to better reflect request's intention

comment:2 follow-up: Changed 2 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 2 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 2 years ago by rjollos

I think wiki_page_prefix is appropriate given the existing wiki_page_link option.

comment:5 Changed 6 days 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)

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.