wiki:ShowPathPlugin

Version 1 (modified by Jason Winnebeck, 16 years ago) (diff)

New hack ShowPathPlugin, created by JasonWinnebeck

ShowPath Plugin

Description

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.

Bugs/Feature Requests

Existing bugs and feature requests for ShowPathPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:showpathplugin here].

Source

You can check out ShowPathPlugin from here using Subversion, or browse the source with Trac.

Example

Replaces the "Start Page" link in the Trac bar. If you are on this page, you would see Start Page / ShowPathPlugin instead. If you were in a a subpage like "ShowPathPlugin/SubPage" you would see Start Page / ShowPathPlugin / SubPage.

Recent Changes

4474 by JasonWinnebeck on 2008-10-13 12:44:28
Removed debugging print, which seems to be crashing Trac when run under CGI. I'm 90% sure that this closes #3638
3932 by JasonWinnebeck on 2008-07-01 21:44:33
Check type of element, to prevent AttributeError on custom ticket query pages
3702 by JasonWinnebeck on 2008-05-20 19:08:33
Closes #3047, rewritten to use IRequestFilter API, probably is more efficient now
(more)

Author/Contributors

Author: JasonWinnebeck
Contributors: