Line: 1 to 1 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Form Templates | ||||||||||||||||||||
> > | TWiki Form Templates | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Include form-based input in topics, with unlimited, user-selectable forms per web; values stored as Meta Data | ||||||||||||||||||||
> > | Form-based input in topics, with name/value pairs stored as Meta Data variables; multiple forms per web & topic | ||||||||||||||||||||
OverviewBy adding form-based input to free-form content, you can structure topics with unlimited, easily searchable categories. When forms are enabled for a web and selected in a topic, the form appears in edit mode, and the contents are rendered as a table when viewing the actual page. When editing, can switch forms, if more than one is defined, or remove forms entirely. Form input values are stored as TWikiMetaData; all data is saved. | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Form Templates replace TWikiCategory Tables from the previous version of TWiki. | ||||||||||||||||||||
> > | Form Templates replace TWikiCategory Tables from the 01-Dec-2000 version of TWiki.
Changes from the Category Table SystemForm Templates more powerful, flexible replacement for the original TWikiCategoryTable. Data from existing category tables can be imported directly. Main changes from TWikiCategoryTable:
Importing Existing Category Table DataOn upgrading from the previous TWiki, a Form Template topic has to be built for each web that used a Category Table, recreating the fields and values from the oldtwikicatitems.tmpl . The replacement Form Template must be set as the first item in the WebPreferences variable =WEBFORM . If missing, pages will display, but attempting to edit results in an error message.
The new Form Template system should work with old Category Table data with no special conversion. Data is assigned to Meta variables the first time an imported topic is edited and saved in the new system.
NOTE: If things aren't working correctly, there may be useful entries in data/warning.txt . | ||||||||||||||||||||
Form Template Elements | |||||||||||||||||||||
Line: 38 to 59 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Example: Form Template | ||||||||||||||||||||
> > | Example: WebFormTemplate from the TWiki.Know web | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
Defining a Form in One Topic | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Example: WebFormTemplate of the TWiki.Know web: | ||||||||||||||||||||
> > | Example: WebFormTemplate from the TWiki.Know web | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
| |||||||||||||||||||||
Added: | |||||||||||||||||||||
> > | |||||||||||||||||||||
Defining a Form in Multiple Topics | |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | The form template can also be defined in an alternative way by using more then one topic: | ||||||||||||||||||||
> > | The Form Template can also be defined in an alternative way by using more then one topic: | ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < | Code from: | ||||||||||||||||||||
> > | Code from: | ||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
| |||||||||||||||||||||
Line: 102 to 127 | |||||||||||||||||||||
| |||||||||||||||||||||
Changed: | |||||||||||||||||||||
< < |
| ||||||||||||||||||||
> > |
| ||||||||||||||||||||
Creating New Topics with Forms |