Changes between Version 8 and Version 9 of ShowPathPlugin
- Timestamp:
- Nov 5, 2015, 9:41:12 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShowPathPlugin
v8 v9 1 = !ShowPath Plugin = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 == Description == 3 = !ShowPath Plugin 4 5 == Description 4 6 5 7 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 == The Times, They Are A'Changin' ==8 8 9 9 In the current Trac 0.11-stable branch (at least as of t:source:branches/0.11-stable at 7581) is currently the Trac 0.11.2 release, which includes an integration of the !ShowPath "patch" to Trac. If this functionality is deployed, it would basically obsolete this plugin, but is not incompatible with this plugin. What is implemented is slightly different from what this plugin does: … … 14 14 15 15 The plugin does work in Trac 0.11.2, but you will see both the Trac 0.11.2 functionality (breadcrumbs on the left and "Up" link) and the added links from this plugin. If you want to hide the path generated by Trac, you could try adding a custom CSS stylesheet with the following content: 16 {{{ 17 #!css 16 {{{#!css 18 17 div#content > p.path { display: none; } 19 18 }}} 20 19 21 == Requirements == 22 23 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. 24 25 == Documentation == 26 27 From the source: 20 Documentation from the source: 28 21 29 22 {{{ … … 57 50 }}} 58 51 59 == Bugs/Feature Requests ==52 == Bugs/Feature Requests 60 53 61 54 Existing bugs and feature requests for ShowPathPlugin are … … 63 56 64 57 If you have any issues, create a 65 [ http://trac-hacks.org/newticket?component=ShowPathPlugin&owner=JasonWinnebecknew ticket].58 [/newticket?component=ShowPathPlugin new ticket]. 66 59 67 === Future Work ===60 === TODO 68 61 69 * 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.62 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. 70 63 71 == Download == 64 [[TicketQuery(component=ShowPathPlugin&group=type,format=progress)]] 72 65 73 Download the zipped source from [download:showpathplugin here]. 66 == Download 74 67 75 == Source == 68 Download the zipped source from [export:showpathplugin here]. 76 69 77 You can check out ShowPathPlugin from [http://trac-hacks.org/svn/showpathplugin here] using Subversion, or [source:showpathplugin browse the source] with Trac. 70 == Source 78 71 79 == Example == 72 You can check out ShowPathPlugin from [/svn/showpathplugin here] using Subversion, or [source:showpathplugin browse the source] with Trac. 80 73 81 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. 74 == Installation 82 75 76 This plugin requires 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. 83 77 84 == Recent Changes == 78 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 79 80 == Example 81 82 Replaces the "Start Page" link in the Trac bar. 83 84 If you are on this page, you would see: 85 86 [wiki:WikiStart Start Page] / ShowPathPlugin. 87 88 If you were in a subpage like "!ShowPathPlugin/SubPage" you would see: 89 90 [wiki:WikiStart Start Page] / [wiki:ShowPathPlugin ShowPathPlugin] / !SubPage. 91 92 == Recent Changes 85 93 86 94 [[ChangeLog(showpathplugin, 3)]] … … 89 97 90 98 '''Author:''' [wiki:JasonWinnebeck] [[BR]] 99 '''Maintainer:''' [[Maintainer]] [[BR]] 91 100 '''Contributors:'''