wiki-archive/twiki/data/TWiki/AnApplicationWithWikiForm.t...

142 lines
3.1 KiB
Plaintext

head 1.4;
access;
symbols;
locks; strict;
comment @# @;
1.4
date 2007.01.16.04.12.06; author TWikiContributor; state Exp;
branches;
next 1.3;
1.3
date 2006.06.25.16.26.25; author TWikiContributor; state Exp;
branches;
next 1.2;
1.2
date 2006.04.01.05.55.04; author TWikiContributor; state Exp;
branches;
next 1.1;
1.1
date 2006.02.01.12.01.16; author TWikiContributor; state Exp;
branches;
next ;
desc
@new-topic
@
1.4
log
@buildrelease
@
text
@%META:TOPICINFO{author="TWikiContributor" date="1163619832" format="1.0" version="4"}%
%META:TOPICPARENT{name="TWikiFAQ"}%
---++ FAQ:
How can I create a simple [[TWikiForms][TWiki Form]] based application?
---++ Answer:
1 Create a TWiki Form and define fields (see TWikiForms for details)
1 Add the form in the list of Web Forms. Set the variable WEBFORMS in WebPreferences
1 Create a Template Topic
1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic using the "Add Form" button
1 Create a HTML Form with necessary fields
1 Define =SEARCH= function for listing items (see VarSEARCH for details)
For more information follow the links...
The following is the code source of TWikiFAQ:
<verbatim>
<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
New FAQ topic: &nbsp; (Use a name in TWiki.WikiNotation) <br />
<input type="text" name="topic" size="32" />&nbsp;<input type="submit" class="twikiSubmit" value="Create Topic" />
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="templatetopic" value="TWikiFaqTemplate" />
<input type="hidden" name="topicparent" value="%TOPIC%" />
<br />
</form>
</verbatim>
----
And the =SEARCH= function:
<verbatim>
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" type="regex" nosearch="on" nototal="on"}%
</verbatim>
__Back to:__ TWikiFAQ
__Related Topics:__ UserDocumentationCategory
-- __Contributors:__ TWiki:Main.MiyokoTakushima - 18 Oct 2004
@
1.3
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="3"}%
d35 1
a35 1
%SEARCH{ "Back to\:__ TWikiFAQ" casesensitive="on" regex="on" nosearch="on" nototal="on"}%
d44 1
a44 2
-- TWiki:Main.MiyokoTakushima - 18 Oct 2004 <br />
@
1.2
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="2"}%
d9 1
a9 1
1 Create a [[TWikiForms][TWiki Form]] and define fields (TWikiForms)
d11 2
a12 2
1 Create a Template Topic and in Edit mode
1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic
d14 1
a14 1
1 Define =SEARCH= function for listing items. See VarSEARCH
@
1.1
log
@buildrelease
@
text
@d1 1
a1 1
%META:TOPICINFO{author="TWikiContributor" date="1098088852" format="1.0" version="1"}%
d9 6
a14 6
1 Create a [[TWikiForms][TWiki Form]] and define fields (TWikiForms)
1 Add the form in the list of Web Forms. Set the variable WEBFORMS in WebPreferences
1 Create a Template Topic and in Edit mode
1 In edit mode add the [[TWikiForms][TWiki Form]] you defined to the Template Topic
1 Create a HTML Form with necessary fields
1 Define =SEARCH= function for listing items. See TWikiVariables#VarSEARCH
@