|
META TOPICPARENT | name="WebHome" |
| |
- Save the topic (you can later choose to enable/disable individual forms).
| |
< < | Example: WebForm
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* |
| Know.TopicClassification | select | 1 | Know.NoDisclosure,
Know.PublicSupported, Know.PublicFAQ | blah blah... |
| Know.OperatingSystem | checkbox | 3 | Know.OsHPUX, Know.OsLinux,
Know.OsSolaris, Know.OsWin | blah blah... |
| Know.OsVersion | text | 16 | | blah blah... |
| > > | Example: WebForm
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* |
| TopicClassification | select | 1 | NoDisclosure, PublicSupported, PublicFAQ | blah blah... |
| OperatingSystem | checkbox | 3 | OsHPUX, OsLinux, OsSolaris, OsWin | blah blah... |
| OsVersion | text | 16 | | blah blah... | | |
| |
< < |
TopicClassification? | select | 1 | NoDisclosure? , PublicSupported? , PublicFAQ? | blah blah... |
OperatingSystem? | checkbox | 3 | OsHPUX? , OsLinux? , OsSolaris? , OsWin? | blah blah... |
OsVersion? | text | 16 | | blah blah... |
| > > |
| |
Defining a Form with Multiple Topics | |
Example: WebFormTemplate | |
< < |
- Know.WebFormTemplate main definition:
| > > |
- WebFormTemplate main definition:
| |
| |
< < |
TopicClassification? | select | 1 | | blah blah... |
OperatingSystem? | checkbox | 3 | | blah blah... |
OsVersion? | text | 16 | | blah blah... |
| > > |
TopicClassification | select | 1 | | blah blah... |
OperatingSystem | checkbox | 3 | | blah blah... |
OsVersion | text | 16 | | blah blah... |
| |
Leave the Values field blank. | |
< < |
- Know.TopicClassification field value definition:
| > > |
- TopicClassification field value definition:
| |
| |
< < |
NoDisclosure? | option | blah blah... |
PublicSupported? | option | blah blah... |
PublicFAQ? | option | blah blah... |
| > > |
NoDisclosure | option | blah blah... |
PublicSupported | option | blah blah... |
PublicFAQ | option | blah blah... |
| |
- Implementation Notes: This format allows you to define field items with or without WikiNames, depending on your needs.
| |
- Additionally a new topic can be given a Form using the
formtemplate parameter in the URL. Initial values can then be provided in the URLs or as form values:
- other than checkboxes:
name , ex: ?BugPriority=1
| |
< < |
-
- checkbox:
namevalue=1 , ex: ?ColourRed=1 .
| > > |
-
- checkbox:
namevalue=1 , ex: ?ColorRed=1 .
| | Boxes with a tick must be specified.
Setting Up Multiple Form Options | | NOTE: If things aren't working correctly, there may be useful entries in data/warning.txt . | |
> > | Using Forms For Settings
Example process to change your WebPreferences to use forms instead of {3 spaces}* Set statements:
- create WebPrefencesForm topic
- fill it with a table like this:
| *Name*|*Type*|*Size*|*Value*|*Tooltip message*|*Attributes*| | WEBTOPICLIST |textarea| | | List of topics of the %WEB% web |S| | SITEMAPLIST |select |3| on, | list this web in the Site Map |S| | SITEMAPWHAT |textarea| | | short web summary |S| | WEBBGCOLOR |text |8| | Web specific background color |S| etc...
- Edit WebPreferences and:
- Add or Change the form to WebPrefencesForm
- add WebPrefencesForm to the
Set WEBFORMS line
- Save
- Edit WebPreferences, jump straight down to the form ignoring all the
textarea stuff, and set as you like
- if everything works as you like it, you can delete the Set statements (the form overrides set if they are both used).
Notes:
If it isn't working, double check that the S attribute has been specified (S for Setting).
If you change the form, the changes will not take affect until you edit and save the preferences' topics again.
Using the TWiki:Plugins.EditTablePlugin on WebPreferencesForm makes adding new prefedrences a breeze.
A possibly unwanted side effect for using forms for the SKINS setting in their personal user topic: because the User Preferences are final you can't have different skins for different webs as the user's setting always wins. A workaround is to simply omit SKIN in the form.
Another example, this one using EditTablePlugin, source:
%EDITTABLE{ header="|*Name*|*Type*|*Size*|*Values*|*Tooltip message*|*Attributes*|" format="|text,20|text,20|text,20|text,20|text,20|text,1|" }%
Result (after some editing):
<-- /editTable --> | | -- TWiki:Main.JohnTalintyre - 16 Aug 2001
-- TWiki:Main.MikeMannix - 05 Jan 2002
| |
< < | -- TWiki:Main.PeterThoeny - 25 Apr 2004 | > > | -- TWiki:Main.PeterThoeny - 25 Apr 2004
-- TWiki:Main.MattWilkie - 27 Jul 2004
| |
META TOPICMOVED | by="MikeMannix" date="1000277489" from="TWiki.TWikiFormTemplate" to="TWiki.TWikiForms" |
|
|