wiki:TracShowPathPatch

Integrate ShowPath into Trac

Description

This plugin 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.

task

1 / 1

Download

Download the source of 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 version 0.94, see t:#2780

Recent Changes

119 by root on 2005-09-29 13:02:33
  • Renamed */trunk to */0.9 and */stable to */0.8 for future proofing.
94 by mhuysamen on 2005-08-04 08:22:27
TracShowPathPatch:

First revision of the showpath patch. Refer to TracShowPathPatch for details.

93 by mhuysamen on 2005-08-04 08:18:58
New hack TracShowPathPatch, created by mhuysamen
(more)

Author/Contributors

Author: mhuysamen
Maintainer: Marius Huysamen
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 out of line, so I edited the file and deleted the pyc file and restarted tracd. The css code added to my project/templates/site_css.cs file is as follows:

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

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

Last modified 10 months ago Last modified on Jul 20, 2015, 3:56:20 PM