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