| 1 | = ListTracProjects = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | Provided an environment parent directory (like the {{{PythonOption TracEnvParentDir}}} directive in Trac's apache configuration), this will list links to multiple projects in a scalable, indexed, table-oriented format. This macro was created to address the problem of trying to host multiple Trac instances within a single site. |
| 6 | |
| 7 | This macro is an updated incarnation of the original by robert@exa-omicron.nl, located in the [http://trac.edgewall.org/wiki/MacroBazaar#ListTracProjects MacroBazaar]. |
| 8 | |
| 9 | Portions of this script were copied from trac.web.main.py. |
| 10 | Authors: |
| 11 | * Christopher Lenz <cmlenz@gmx.de> |
| 12 | * Matthew Good <trac@matt-good.net> |
| 13 | |
| 14 | == Bugs/Feature Requests == |
| 15 | |
| 16 | Existing bugs and feature requests for ListTracProjectsMacro are |
| 17 | [report:9?COMPONENT=ListTracProjectsMacro here]. |
| 18 | |
| 19 | If you have any issues, create a |
| 20 | [http://trac-hacks.org/newticket?component=ListTracProjectsMacro&owner=mathomas new ticket]. |
| 21 | |
| 22 | == Download == |
| 23 | |
| 24 | Download the zipped source from [download:listtracprojectsmacro here]. |
| 25 | |
| 26 | == Source == |
| 27 | |
| 28 | You can check out ListTracProjectsMacro from [http://trac-hacks.org/svn/listtracprojectsmacro here] using Subversion, or [source:listtracprojectsmacro browse the source] with Trac. |
| 29 | |
| 30 | == Example == |
| 31 | |
| 32 | You must edit and change the variable ENV_PARENT_DIR in the script to point to your environment's parent directory, e.g. {{{/usr/local/www/trac/}}}. |
| 33 | |
| 34 | A sample call to the macro: |
| 35 | {{{ |
| 36 | [[ListTracProjects()]] |
| 37 | }}} |
| 38 | |
| 39 | == Recent Changes == |
| 40 | |
| 41 | [[ChangeLog(listtracprojectsmacro, 3)]] |
| 42 | |
| 43 | == Author/Contributors == |
| 44 | |
| 45 | '''Author:''' [wiki:mathomas] [[BR]] |
| 46 | '''Contributors:''' |