Changes between Version 9 and Version 10 of ShowPathPlugin
- Timestamp:
- Feb 12, 2017, 8:20:41 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ShowPathPlugin
v9 v10 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = !ShowPath Plugin3 = Show hierarchy of current page 4 4 5 5 == Description 6 7 This plugin replaces the global "Start Page" link with a path of links for hierarchical pages, for example 8 9 `http://mytrac.com/wiki/ParentPage/ChildPage/GrandchildPage` 10 11 would create a !ShowPath of: 12 13 `Start Page / ParentPage / ChildPage / GrandchildPage` 14 15 where all are links except for the current, GrandchildPage. 6 16 7 17 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. … … 18 28 }}} 19 29 20 Documentation from the source: 21 22 {{{ 23 0.11dev rewrite of original ShowPath functionality. Replaces 24 the global "Start Page" link with a path of links for 25 hierarchical pages. 26 e.g., http://mytrac.com/wiki/ParentPage/ChildPage/GrandchildPage 27 ..would create a ShowPath of 28 Start Page / ParentPage / ChildPage / GrandchildPage 29 ..where all are links except for the current, GrandchildPage. 30 31 * http://trac-hacks.org/wiki/ShowPathPlugin 32 33 Just drop in your trac/<projectname>/plugins dir. If you are using 34 an inherited plugins_dir in Trac, that will also work to place this 35 file there. 36 37 Supports one optional trac.ini setting, sep_character, which 38 specifies the character to use in the path display: 39 [showpath] 40 sep_character = » 41 The default is a forward slash (/); note that no matter what character 42 is specified, it will always be rendered with a single space on 43 either side. If you specify a string of more than one character, 44 only the first non-whitespace character will be used. 45 46 2007 Morris - gt4329b@pobox.com 47 rfmorris on irc://freenode/trac 48 49 2008 Modification by Jason Winnebeck 50 }}} 30 See also: BreadCrumbsNavPlugin 51 31 52 32 == Bugs/Feature Requests … … 58 38 [/newticket?component=ShowPathPlugin new ticket]. 59 39 60 === TODO 40 [[TicketQuery(component=ShowPathPlugin&group=type,format=progress)]] 61 41 62 42 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. 63 64 [[TicketQuery(component=ShowPathPlugin&group=type,format=progress)]]65 43 66 44 == Download … … 77 55 78 56 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 57 58 == Configuration 59 60 This plugin supports one optional `trac.ini` setting, sep_character, which specifies the character to use in the path display: 61 {{{#!ini 62 [showpath] 63 sep_character = » 64 }}} 65 66 The default is a forward slash (/); note that no matter what character is specified, it will always be rendered with a single space on either side. If you specify a string of more than one character, only the first non-whitespace character will be used. 79 67 80 68 == Example … … 94 82 [[ChangeLog(showpathplugin, 3)]] 95 83 96 == Author/Contributors ==84 == Author/Contributors 97 85 98 86 '''Author:''' [wiki:JasonWinnebeck] [[BR]]