Changes between Version 1 and Version 2 of SubProjectsPatch


Ignore:
Timestamp:
Mar 21, 2008, 11:35:26 PM (7 years ago)
Author:
progrium
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SubProjectsPatch

    v1 v2  
    33== Description ==
    44
    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/childproject
     5This 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
    66
    77It only works when using an environment parent directory for the top level afaik. Hopefully this is useful for somebody.
     
    2525== Example ==
    2626
    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".
     27Apply 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'.
    2828
    2929You 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.