Edgewall Software

Changes between Version 54 and Version 55 of TracModPython


Ignore:
Timestamp:
Dec 4, 2005, 7:58:11 PM (18 years ago)
Author:
Matthew Good
Comment:

the info on the project index has been moved to TracInterfaceCustomization

Legend:

Unmodified
Added
Removed
Modified
  • TracModPython

    v54 v55  
    104104}}}
    105105
    106 
    107 == Custom Projects Index ==
    108 In case you have multiple projects set up under a VHost, you can now have a custom ClearSilver template for your projects index. Here's an example posted by Matthew Good on the mailling list:
    109 {{{
    110 #!text/html
    111 <html>
    112 <head><title>Available Projects</title></head>
    113 <body><h1>Available Projects</h1><ul><?cs
    114  each:project = projects ?><li><?cs
    115   if:project.href ?>
    116    <a href="<?cs var:project.href ?>" title="<?cs var:project.description ?>">
    117     <?cs var:project.name ?></a><?cs
    118   else ?>
    119    <small><?cs var:project.name ?>: <em>Error</em> <br />
    120    (<?cs var:project.description ?>)</small><?cs
    121   /if ?>
    122   </li><?cs
    123  /each ?></ul></body>
    124 </html>
    125 }}}
    126 
    127 This should get you started. The only thing you need to do now is edit your apache configuration file and add:
    128 {{{
    129 PythonOption TracEnvIndexTemplate /path/to/template
    130 }}}
    131 
    132 
    133106== Troubleshooting ==
    134107