[Trac] Re: adding a left side menu...

bruce bedouglas at earthlink.net
Thu Mar 3 09:57:33 EST 2005


ps...

i've tried to go back through the mailing list archives.. using a manual
approach (reading!!) given that there's no way to search to archive list!!

i may have missed this topic, but i didn't see anything that jumped out at
me about this.. i also didn't find anything regarding this using google..

if i can get a reasonable solution for what i'm working with.. i'm willing
to do a quick writeup to save someone else the pain of having to go through
this again...

-bruce


-----Original Message-----
From: Matthew Good [mailto:trac at matt-good.net]
Sent: Thursday, March 03, 2005 5:59 AM
To: trac at lists.edgewall.com; bedouglas at earthlink.net
Subject: RE: [Trac] Re: adding a left side menu...


On Thu, 2005-03-03 at 04:22 -0800, bruce wrote:
> but i still don't have a clue as to how to use 'TracGuideToc' within my
> version of trac to create a vertical left menu like 'trac.edgewall.com'.

The previous poster was mistaken.  The TracGuideToc is not what you were
referring to.  Also, trac.edgewall.com is part of their corporate
website and is not powered by the Trac software, so
http://projects.edgewall.com/trac is what you should be looking at.

> in reviewing the docs for 'TracGuideToc' i don't have any example that
shows
> what file this should be included in, nor to i have any example that
really
> explains/walks through what the attributes are that should be used with
the
> TracGuideToc macro..

Yes, right now the TracGuideToc is specifically for generating the table
of contents seen on http://projects.edgewall.com/trac/wiki/TracGuide

For something similar to the TracGuideToc, take a look at:
http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav

The TracNav macro allows you to create a basic menu in the wiki, however
you will have to include the macro on each page in the wiki where you
would like it to appear.

Like I said before, if you want to actually create a menu like on the
Trac project site, you will need to edit the HTML templates.  These
files are generally located in /usr/share/trac/templates on Linux/Unix
or C:\Python23\share\trac\templates on Windows.

Trac uses the ClearSilver http://www.clearsilver.net/ templating
language, which is similar to something like ASP, JSP, or PHP.

--
Matthew Good <trac at matt-good.net>



More information about the Trac mailing list