Integrate ShowPath into Trac

Description

Integrates the functionality provided by the ShowPathMacro into Trac.

The path to the current wiki page is added to the Start Page link in the Wiki NavBar. All the parts of the path to the current page will be linked except for the current, allowing you to see the WikiPage you are on and moving up in a hierarchical WikiPage.

If TracHacks used this patch the Start Page link in the NavBar would look like this: Start Page / TracShowPathPatch

If we had a hierachical page like Book/Chapter/Section/Subsection it would look like this: Start Page / Book / Chapter / Section / Subsection

Bugs/Feature Requests

Existing bugs and feature requests for TracShowPathPatch are here.

If you have any issues, create a new ticket.

Download

TracShowPathPatch for 0.8.

Source

You can check out the source for TracShowPathPatch from Subversion at http://trac-hacks.org/svn/tracshowpathpatch.

Example

cd path/to/trac/src/trac-0.8.4
patch -p1 < trac-showpath.diff
python setup.py install

For 0.94

http://projects.edgewall.com/trac/ticket/2780

Author/Contributors

Author: mhuysamen
Contributors:

Comments

I added this hack to the trac 0.10 dev trunk using the 0.94 patch and added a css class. Works great!
The patch for the 0.94 version is a bit out of line whack so I edited the file by hand and deleted the pyc file and restart tracd.
My css code is below that I added to my project/templates/site_css.cs file.

div.wikinav {
        position: absolute;
        top: 190px;
        left: 10px;
        color: #ccc;
        text-transform: lowercase;
        letter-spacing: 0.5em;
        display: block;
}

You can see it in action here link broken

Thanks !!
sgrayban

The ticket http://trac.edgewall.org/ticket/2780#comment:17 now has instructions for 0.10.4