Changes between Version 6 and Version 7 of ArbitraryOptionsPlugin
- Timestamp:
- Aug 25, 2015, 12:44:18 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ArbitraryOptionsPlugin
v6 v7 1 = Arbitrary Options Plugin = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = = Description ==3 = Arbitrary Options Plugin 4 4 5 Pass arbitrary options from conf.ini's to templates in Trac. 5 == Description 6 6 7 You put whatever options you'd like in a [project_info] stanza inside your trac's .ini file. These are passed to the template as key-value pairs inside the dictionary 'project_info'. 7 This plugin allows you to pass arbitrary options from conf.ini's to templates in Trac. 8 9 You put whatever options you'd like in a [project_info] stanza inside your Trac's .ini file. These are passed to the template as key-value pairs inside the dictionary 'project_info'. 8 10 9 11 You can also access data for other projects in your trac env under the list 'projects'. That list will have a dictionary with keys 'name', 'description', 'href', and 'info', where the first three are the same as in a project list, and the 'info' is the dictionary of arbitrary options you've passed for that project. … … 11 13 You can do this for your project listing page too, using the ArbitraryProjectPropertiesPatch. 12 14 13 Note that this is only implemented for Genshi right now, but there's no reason you couldn't add a line or two for !ClearSilver, I just didn't have a way to test it.15 Note that this is only implemented for Genshi right now, but you could add a line or two for !ClearSilver, although this is untested. 14 16 15 == = Examples ===17 == Bugs/Feature Requests 16 18 17 If your .ini had this: 19 Existing bugs and feature requests for ArbitraryOptionsPlugin are 20 [report:9?COMPONENT=ArbitraryOptionsPlugin here]. 18 21 22 If you have any issues, create a 23 [/newticket?component=ArbitraryOptionsPlugin new ticket]. 24 25 [[TicketQuery(component=ArbitraryOptionsPlugin&group=type,format=progress)]] 26 27 == Download 28 29 Download the zipped source from [download:arbitraryoptionsplugin here]. 30 31 You can also just run: 19 32 {{{ 20 #!ini 33 easy_install TracArbitraryOptionsPlugin 34 }}} 35 36 == Source 37 38 You can check out ArbitraryOptionsPlugin from [http://trac-hacks.org/svn/arbitraryoptionsplugin here] using Subversion, or [source:arbitraryoptionsplugin browse the source] with Trac. 39 40 == Installation 41 42 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 43 44 == Example 45 46 If your `trac.ini` file had this: 47 48 {{{#!ini 21 49 [project_info] 22 50 short_name = my_project … … 28 56 29 57 {{{ 30 Short name is ${project_info.get('short_name')}. Status is ${project_info.get('status')}. 58 Short name is ${project_info.get('short_name')}. Status is ${project_info.get('status')}. Order is ${project_info.get('order')}. 31 59 }}} 32 60 … … 42 70 See http://projects.icapsid.net/adjector for a usage example. 43 71 44 == Bugs/Feature Requests == 45 46 Existing bugs and feature requests for ArbitraryOptionsPlugin are 47 [report:9?COMPONENT=ArbitraryOptionsPlugin here]. 48 49 If you have any issues, create a 50 [http://trac-hacks.org/newticket?component=ArbitraryOptionsPlugin&owner=david new ticket]. 51 52 == Download == 53 54 Download the zipped source from [download:arbitraryoptionsplugin here]. 55 56 You can also just run: 57 {{{ 58 easy_install TracArbitraryOptionsPlugin 59 }}} 60 61 == Source == 62 63 You can check out ArbitraryOptionsPlugin from [http://trac-hacks.org/svn/arbitraryoptionsplugin here] using Subversion, or [source:arbitraryoptionsplugin browse the source] with Trac. 64 65 == Recent Changes == 72 == Recent Changes 66 73 67 74 [[ChangeLog(arbitraryoptionsplugin, 3)]] 68 75 69 == Author/Contributors ==76 == Author/Contributors 70 77 71 78 '''Author:''' [wiki:david] [[BR]] 72 '''Maintainer:''' [ wiki:david] [[BR]]79 '''Maintainer:''' [[Maintainer]] [[BR]] 73 80 '''Contributors:'''