= Patch Trac to allow Arbitrary Project Properties = == Description == Using this patch you can specify a [project_info] stanza in your trac.ini file, and everything in that stanza will be passed to your project listing template as key-value pairs under the dictionary ``project.info``. You can do this inside each project too, with the ArbitraryOptionsPlugin. == Bugs/Feature Requests == Existing bugs and feature requests for ArbitraryProjectPropertiesPatch are [report:9?COMPONENT=ArbitraryProjectPropertiesPatch here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=ArbitraryProjectPropertiesPatch&owner=david new ticket]. == Download == Download the zipped source from [download:arbitraryprojectpropertiespatch here]. == Source == You can check out ArbitraryProjectPropertiesPatch from [http://trac-hacks.org/svn/arbitraryprojectpropertiespatch here] using Subversion, or [source:arbitraryprojectpropertiespatch browse the source] with Trac. == Example == Imagine you have trac.ini's for each project with data like: {{{ #!ini [project_info] short_name = my_project status = active order = 3 }}} You can then iterate over them in your project listing template like: {{{ <div class='incubator'> <h3>Incubator</h3> <div py:for='project in projects' py:if='project.info.get("status") == "incubator"' class='project'> <a class='name' href='${project.href}'>${project.name}</a> - <span class='description'>${project.description}</span> </div> </div> }}} == Recent Changes == [[ChangeLog(arbitraryprojectpropertiespatch, 3)]] == Author/Contributors == '''Author:''' [wiki:david] [[BR]] '''Maintainer:''' [wiki:david] [[BR]] '''Contributors:'''