wiki:ParametrizedTemplatesPlugin

Version 2 (modified by Álvaro Iradier, 14 years ago) (diff)

--

Trac Parametrized Templates

Description

Create 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.

Bugs/Feature Requests

Existing bugs and feature requests for ParametrizedTemplatesPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from [download:parametrizedtemplatesplugin here].

Source

You can check out ParametrizedTemplatesPlugin from here using Subversion, or browse the source with Trac.

Example

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.

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.

To activate the plugin, add the following line (as usual) to trac.ini:

...

[components]
parametrizedtemplates.* = enabled

...

An example template:

 = Example page template =

 This is value of parameter 1: {{param1, Title for parameter 1}}

 This is a textare parameter 2: {{param2, Title for parameter 2, textarea}}

when creating a new page from that template, you'll get a form like:

Recent Changes

16397 by rjollos on 2017-03-25 09:37:00
Remove obsolete "0.9" code
9437 by airadier on 2010-11-18 10:14:28
Added support for default value in the parameters. Closes #8013
9259 by airadier on 2010-10-06 16:09:55
Added missing setup.py. Closes #7783
(more)

Author/Contributors

Author: airadier
Maintainer: airadier
Contributors:

Attachments (1)

Download all attachments as: .zip