Changes between Version 3 and Version 4 of SubProjectsPatch
- Timestamp:
- Jun 9, 2015, 12:32:31 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SubProjectsPatch
v3 v4 1 = Sub Projects = 1 [[PageOutline(2-5,Contents,pullout)]] 2 3 = Add sub projects to you Trac environment 2 4 3 5 == Description == 4 6 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/childproject7 This hack is a patch that allows you to 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. 6 8 7 It only works when using an environment parent directory for the top level afaik. Hopefully this is useful for somebody.9 For example: `/parentproject/p/childproject`. 8 10 9 == Bugs/Feature Requests == 11 It only works when using an environment parent directory for the top level. 12 13 == Bugs/Feature Requests 10 14 11 15 Existing bugs and feature requests for SubProjectsPatch are … … 13 17 14 18 If you have any issues, create a 15 [ http://trac-hacks.org/newticket?component=SubProjectsPatch&owner=progriumnew ticket].19 [/newticket?component=SubProjectsPatch new ticket]. 16 20 17 == Download and Source == 21 [[TicketQuery(component=SubProjectsPatch&group=type,format=progress)]] 22 23 == Download and Source 18 24 19 25 Download [download:subprojectspatch the zipped source], check out [http://trac-hacks.org/svn/subprojectspatch using Subversion], or [source:subprojectspatch browse the source] with Trac. 20 26 21 == Example ==27 == Configuration 22 28 23 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'. 29 Follow these generic guidelines to apply this patch: 24 30 25 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. 31 1. Apply the patch to `trac/web/main.py`. 32 1. Create an environment called 'foo'. 33 1. Create a directory in 'foo' called 'projects'. 34 1. Create another environment inside 'projects' called 'bar'. 35 1. Restart tracd and point the env-parent-dir to the parent of 'foo'. 26 36 27 == Recent Changes == 37 == Example 38 39 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 all other navigation. 40 41 == Recent Changes 28 42 29 43 [[ChangeLog(subprojectspatch, 3)]] … … 32 46 33 47 '''Author:''' [wiki:progrium] [[BR]] 48 '''Maintainer:''' [[Maintainer]] [[BR]] 34 49 '''Contributors:'''