Changes between Version 19 and Version 20 of RegexLinkPlugin
- Timestamp:
- Jul 23, 2015, 1:17:41 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RegexLinkPlugin
v19 v20 1 = Turn anything matching a certain regex into a link = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 == Description == 3 = Turn anything matching a certain regex into a link 4 5 == Description 4 6 5 7 A disadvantage of using InterWiki to link to external pages is that the user has to put a prefix before the link, for example MeatBall:InterMapTxt. … … 7 9 In some cases, the actual text to be linked is distinctive enough to be turned into a link without many false positives. For example, TOPdesk service management software uses identifiers like '0811 123' for incidents. When text of this form occurs, it could be automatically rendered into a link to the relevant TOPdesk page. 8 10 9 Th e intention of this Trac plugin is to allowthese kinds of links to be made with a minimum of configuration, based on a regex that matches the external identifiers.11 This Trac plugin allows these kinds of links to be made with a minimum of configuration, based on a regex that matches the external identifiers. 10 12 11 == Bugs/Feature Requests ==13 == Bugs/Feature Requests 12 14 13 15 Existing bugs and feature requests for RegexLinkPlugin are … … 15 17 16 18 If you have any issues, create a 17 [ http://trac-hacks.org/newticket?component=RegexLinkPlugin&owner=ComaVNnew ticket].19 [/newticket?component=RegexLinkPlugin new ticket]. 18 20 19 == Download == 21 [[TicketQuery(component=RegexLinkPlugin&group=type,format=progress)]] 20 22 21 Download the zipped source for version 0.2 from [http://trac-hacks.org/changeset/latest/regexlinkplugin/tags/trac0.11/0.2?old_path=/&filename=regexlinkplugin0.2_trac0.11&format=zip here], or just get the egg for Python 2.5 [export:regexlinkplugin/tags/trac0.11/0.2/dist/RegexLink-0.2-py2.5.egg here] 23 == Download 22 24 23 == Source == 25 Download the zipped source for version 0.2 from [http://trac-hacks.org/changeset/latest/regexlinkplugin/tags/trac0.11/0.2?old_path=/&filename=regexlinkplugin0.2_trac0.11&format=zip here], or just get the egg for Python 2.5 [export:regexlinkplugin/tags/trac0.11/0.2/dist/RegexLink-0.2-py2.5.egg here]. 26 27 == Source 24 28 25 29 You can check out RegexLinkPlugin from [http://trac-hacks.org/svn/regexlinkplugin/trunk here] using Subversion, or [source:regexlinkplugin browse the source] with Trac. … … 27 31 [source:regexlinkplugin/trunk/ trunk] is where active development occurs (on trac 0.11), [source:regexlinkplugin/tags/ tags] contains released versions, and any development for other trac versions will occur in [source:regexlinkplugin/branches/ branches]. 28 32 29 == Example ==33 == Example 30 34 31 in trac.ini:32 {{{ 35 Add the following to your `trac.ini` file: 36 {{{#!ini 33 37 [regexlink] 34 38 regex1 = \b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdesknr>\d{3})\b … … 37 41 url2 = http://example.org/\g<exampleid> 38 42 }}} 39 This means 0811 123 becomes [http://topdesk/query=0811%0123 0811 123], and example123 becomes [http://example.org/123 example123]40 43 41 (the topdesk url is not correct, this is an example only) 44 This means `0811 123` becomes [http://topdesk/query=0811%0123 0811 123], and `example123` becomes [http://example.org/123 example123]. 42 45 43 == Recent Changes == 46 The topdesk url is fictituous, this is an example only. 47 48 == Recent Changes 44 49 45 50 [[ChangeLog(regexlinkplugin, 3)]] 46 51 47 == Author/Contributors ==52 == Author/Contributors 48 53 49 54 '''Author:''' [wiki:ComaVN] [[BR]] 55 '''Maintainer:''' [[Maintainer]] [[BR]] 50 56 '''Contributors:'''