= Sub Projects = == Description == This hack is a simple patch that lets you have a Trac environment parent directory under another Trac environment in a directory called 'projects'. The subprojects are then accessible via the URL of the parent project slash 'p' slash sub project name. For example: /parentproject/p/childproject It only works when using an environment parent directory for the top level afaik. Hopefully this is useful for somebody. == Bugs/Feature Requests == Existing bugs and feature requests for SubProjectsPatch are [report:9?COMPONENT=SubProjectsPatch here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=SubProjectsPatch&owner=progrium new ticket]. == Download == Download the zipped source from [download:subprojectspatch here]. == Source == You can check out SubProjectsPatch from [http://trac-hacks.org/svn/subprojectspatch here] using Subversion, or [source:subprojectspatch browse the source] with Trac. == Example == Apply the patch to trac/web/main.py. Create an environment called 'foo'. Create a directory in 'foo' called 'projects'. Create another environment inside 'projects' called 'bar'. Start tracd and point the env-parent-dir to the parent of 'foo'. You should now be able to go to both /foo and see project foo, and go to /foo/p/bar and see project bar, with valid URL generation and everything. == Recent Changes == [[ChangeLog(subprojectspatch, 3)]] == Author/Contributors == '''Author:''' [wiki:progrium] [[BR]] '''Contributors:'''