I was wondering if anyone had considered a generic form editor. It could work a bit like the use of category editors where a list of items defines the form and templates are used for editing and presentation. Perhaps, twikicatedit.tmpl and twikicatview.tmpl are the default templates for viewing and editing the form while
MyFormTopic.txt contains a table describing the form using a format similar to twikicatitems.tmpl.
I imagine one of two methods for editing forms:
- The form itself would be displayed with it's own edit link, perhaps, and by clicking on this link, you are taken to a script for just editing the form.
- Or, the edit page could be modified to display the form data in addition to the edit box and the category form.
Also, as an alternative to twikicatview.tmpl, a
MyFormTopicTemplate.txt could contain a template for the form that includes the form variables using field substitution such as: %FORMVARIABLE{"NameField"}%, %FORMVARIABLE{"DateField"}%, ...
Perhaps this could be useful for the twikicat files as well?
See also:
TableEditor
--
JamalWills - 02 Aug 2001
The new beta used a topic to define a form, please see
FormTemplateSystem.
--
JohnTalintyre - 07 Aug 2001