Version 2 (modified by Steffen Hoffmann, 10 years ago) (diff)

start documenting the env_debug operation

Another TracFormsPlugin Tutorial

For basic information see the beginners part.

Multiple forms per resource

TracForms has a way to allow multiple forms within a parent resource (ticket description or wiki page): the subcontext. Using multiple unique subcontext IDs you can define a virtually unlimited number of independent forms per parent resource. Add the subcontext command with an argument into each form header like this:

#!subcontext different_form

... field definitions ...


Here we set subcontext to the ID 'different_form'. This helps the form markup parser/processor to find saved field values and to know where to put field update information for this form. You'll notice, if you failed to comply with this demand for distinct form IDs: Each update of one form will reset other form fields within the same (unset) subcontext.

Debug print

There is a debug operation to reveal any value of the corresponding TracForm environment.

Attachments (1)

Download all attachments as: .zip