Changes between Version 34 and Version 35 of TracInterfaceCustomization
- Timestamp:
- Aug 28, 2006, 3:40:40 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInterfaceCustomization
v34 v35 1 1 = Customizing the Trac Interface = 2 [[ PageOutline(2-3,Contents)]]2 [[TracGuideToc]] 3 3 4 4 == Introduction == … … 9 9 10 10 The logo or icon image should be put in a folder named "htdocs" in your project's environment folder. (''Note: in projects created with a Trac version prior to 0.9 you will need to create this folder'') 11 12 ''Note: you can actually put the logo and icon anywhere on your server (as long as it's accessible through the web server), and use their absoluteor server-relative URLs in the configuration.'' 11 13 12 14 Now configure the appropriate section of your [wiki:TracIni trac.ini]: … … 39 41 40 42 == Site Header & Footer == 43 41 44 In the environment folder for each Trac project there should be a directory called {{{templates}}}. This folder contains files {{{site_header.cs}}} and {{{site_footer.cs}}}. Users can customize their Trac site by adding the required HTML markup to these files. The content of these two files will be placed immediately following the opening {{{<body>}}} tag and immediately preceding the closing {{{</body>}}} tag of each page in the site, respectively. 42 45 … … 59 62 60 63 == Project List == 61 You can use a custom ClearSilver template to display the list of projects whenyou are using Trac with multiple projects.62 63 Th is is the basic template used by Trac to display a list of links to the projects. For projects that could not be loaded it displays an error message.64 You can use a custom ClearSilver template to display the list of projects if you are using Trac with multiple projects. 65 66 The following is the basic template used by Trac to display a list of links to the projects. For projects that could not be loaded it displays an error message. You can use this as a starting point for your own index template. 64 67 65 68 {{{ … … 104 107 105 108 106 107 109 == Main Templates == 108 110 … … 110 112 111 113 If you absolutely need to use modified templates, copy the template files from the default templates directory (usually in found in `$prefix/share/trac/templates`) into the `templates` directory of the project environment. Then modify those copies to get the desired results. 114 112 115 113 116 == Adding Google Adsense Services To Your Trac ==