Changes between Version 1 and Version 2 of SubProjectsPatch
- Timestamp:
- Mar 21, 2008, 10:35:26 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SubProjectsPatch
v1 v2 3 3 == Description == 4 4 5 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/childproject5 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 6 6 7 7 It only works when using an environment parent directory for the top level afaik. Hopefully this is useful for somebody. … … 25 25 == Example == 26 26 27 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".27 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'. 28 28 29 29 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.