Changes between Version 2 and Version 3 of ShowPathPlugin
- Timestamp:
- May 19, 2008, 7:53:23 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShowPathPlugin
v2 v3 4 4 5 5 A Trac 0.11 version of the TracShowPathPatch as a single-file plugin, since in Trac 0.11 this can be done without source code modification, thanks to the ITemplateStreamFilter interface in Trac. This is a modification of Morris's work at t:wiki:MacroBazaar#ShowPath. His code works, but only if the trac instance is at the root of the web server (like trac-hacks.org). My modifications use the Trac environment href API to form the proper URLs. 6 7 === Requirements === 8 9 Trac 0.11 and Genshi 0.5. Current version released is 0.4, so Genshi trunk will be needed. I tested with r851 of Genshi trunk. Genshi 0.5 is needed for the Transformer API to replace the "Start Page" link on the context navigation bar. 10 11 === Documentation === 12 13 From the source: 14 15 {{{ 16 0.11dev rewrite of original ShowPath functionality. Replaces 17 the global "Start Page" link with a path of links for 18 hierarchical pages. 19 e.g., http://mytrac.com/wiki/ParentPage/ChildPage/GrandchildPage 20 ..would create a ShowPath of 21 Start Page / ParentPage / ChildPage / GrandchildPage 22 ..where all are links except for the current, GrandchildPage. 23 24 * http://trac-hacks.org/wiki/ShowPathPlugin 25 26 Just drop in your trac/<projectname>/plugins dir. If you are using 27 an inherited plugins_dir in Trac, that will also work to place this 28 file there. 29 30 Supports one optional trac.ini setting, sep_character, which 31 specifies the character to use in the path display: 32 [showpath] 33 sep_character = » 34 The default is a forward slash (/); note that no matter what character 35 is specified, it will always be rendered with a single space on 36 either side. If you specify a string of more than one character, 37 only the first non-whitespace character will be used. 38 39 2007 Morris - gt4329b@pobox.com 40 rfmorris on irc://freenode/trac 41 42 2008 Modification by Jason Winnebeck 43 }}} 6 44 7 45 == Bugs/Feature Requests == … … 12 50 If you have any issues, create a 13 51 [http://trac-hacks.org/newticket?component=ShowPathPlugin&owner=JasonWinnebeck new ticket]. 52 53 === Future Work === 54 55 * Minor issue: I need help on how to figure out where/how to put the documentation such that the web admin console can see descriptions on it. 14 56 15 57 == Download == … … 23 65 == Example == 24 66 25 Replaces the "Start Page" link in the Trac bar. If you are on this page, you would see [wiki:WikiStart Start Page] / ShowPathPlugin instead. If you were in a a subpage like "!ShowPathPlugin/SubPage" you would see[wiki:WikiStart Start Page] / [wiki:ShowPathPlugin ShowPathPlugin] / !SubPage.67 Replaces the "Start Page" link in the Trac bar. If you are on this page, you would see[[BR]][wiki:WikiStart Start Page] / ShowPathPlugin[[BR]]instead. If you were in a a subpage like "!ShowPathPlugin/SubPage" you would see[[BR]][wiki:WikiStart Start Page] / [wiki:ShowPathPlugin ShowPathPlugin] / !SubPage. 26 68 27 69 == Recent Changes ==