Changes between Version 10 and Version 11 of ShowPathPlugin


Ignore:
Timestamp:
Oct 30, 2017, 9:45:40 AM (6 years ago)
Author:
figaro
Comment:

Moved example to description

Legend:

Unmodified
Added
Removed
Modified
  • ShowPathPlugin

    v10 v11  
    1414
    1515where all are links except for the current, GrandchildPage.
     16
     17As an example, if you are on this page, you would see:
     18
     19[wiki:WikiStart Start Page] / ShowPathPlugin.
     20
     21If you were in a subpage like "!ShowPathPlugin/SubPage" you would see:
     22
     23[wiki:WikiStart Start Page] / [wiki:ShowPathPlugin ShowPathPlugin] / !SubPage.
    1624
    1725A 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.
     
    6674The 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.
    6775
    68 == Example
    69 
    70 Replaces the "Start Page" link in the Trac bar.
    71 
    72 If you are on this page, you would see:
    73 
    74 [wiki:WikiStart Start Page] / ShowPathPlugin.
    75 
    76 If you were in a subpage like "!ShowPathPlugin/SubPage" you would see:
    77 
    78 [wiki:WikiStart Start Page] / [wiki:ShowPathPlugin ShowPathPlugin] / !SubPage.
    79 
    8076== Recent Changes
    8177