How-to Display Top Level Trac Projects
This how-to assumes you already have one or several projects under one trac instance. Choose one of the projects to be the main source for templates. There should be a /path/to/trac/project/templates. Copy the of all ClearSilver templates from default template location to the main project location template directory.
For example on NCCOOS Trac, I have chosen the portal Trac Project to use for customizing NCCOOS Trac pages.
cd /var/srv/trac/nccoos/portal/templates cp /usr/share/trac/templates/*.cs .
Since the template directory is already there, edit both site_css.cs and site_header.cs file to contain style and top level directory information.
<?cs ################################################################## # Site CSS - Place custom CSS, including overriding styles here. ?> #ProjectNav { position: absolute; top: 80px; left: 10px; z-index: 1; }
<?cs #################################################################### # Site header - Contents are automatically inserted above Trac HTML ?> <div id="ProjectNav"> NCCOOS Trac Projects: <a href="http://trac.nccoos.org/" title="Available Trac Projects">Top</a> | <a href="http://trac.nccoos.org/portal" title="Web Portal Management Trac">Web</a> | <a href="http://trac.nccoos.org/platforms" title="Observing Platforms Trac">Platforms</a> | <a href="http://trac.nccoos.org/dataproc" title="Data Processing Trac">Processing</a> | <a href="http://trac.nccoos.org/visualization" title="Data Visualization">Viz</a> | <a href="http://trac.nccoos.org/sprints" title="Sprints Trac">Sprints</a> | <a href="http://trac.nccoos.org/scratch" title="Trac Sandbox">Sandbox</a> | <a href="http://trac.nccoos.org/windpower" title="Phase 1 -- NC Wind Power Study GIS Trac [RESTRICTED]">(Wind)</a> </div>