Changes between Version 1 and Version 2 of ParametrizedTemplatesPlugin


Ignore:
Timestamp:
Jul 7, 2010 10:51:53 AM (4 years ago)
Author:
airadier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ParametrizedTemplatesPlugin

    v1 v2  
    55== Description == 
    66 
    7 Create pages from templates with parameters, using a form to input the parameter values. 
     7Create pages from templates with parameters, using a form to input the parameter values. When making a page template, you can add some parameters. When a new page is created using that template, a form will be displayed, with a field for every parameter, and the page will be created by replacing the values submitted in that form. 
    88 
    99== Bugs/Feature Requests ==  
     
    2525== Example == 
    2626 
    27 TO-DO: Example 
     27With 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 
     29When 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 
     31To activate the plugin, add the following line (as usual) to trac.ini: 
     32 
     33{{{ 
     34... 
     35 
     36[components] 
     37parametrizedtemplates.* = enabled 
     38 
     39... 
     40}}} 
     41 
     42An 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 
     54when creating a new page from that template, you'll get a form like: 
     55 
     56[[Image(screenshot.png)]] 
    2857 
    2958== Recent Changes ==