27 | | TO-DO: Example |
| 27 | With this plugin, it is possible to add parameters to a wiki page template, so when creating a new wiki page from this template an intermediate form is displayed, where a field is shown for each of the parameters in the template. |
| 28 | |
| 29 | When the form is submitted, the page is created from the template, replacing every parameter specification in the template with the values from the form. |
| 30 | |
| 31 | To activate the plugin, add the following line (as usual) to trac.ini: |
| 32 | |
| 33 | {{{ |
| 34 | ... |
| 35 | |
| 36 | [components] |
| 37 | parametrizedtemplates.* = enabled |
| 38 | |
| 39 | ... |
| 40 | }}} |
| 41 | |
| 42 | An example template: |
| 43 | |
| 44 | {{{ |
| 45 | |
| 46 | = Example page template = |
| 47 | |
| 48 | This is value of parameter 1: {{param1, Title for parameter 1}} |
| 49 | |
| 50 | This is a textare parameter 2: {{param2, Title for parameter 2, textarea}} |
| 51 | |
| 52 | }}} |
| 53 | |
| 54 | when creating a new page from that template, you'll get a form like: |
| 55 | |
| 56 | [[Image(screenshot.png)]] |