|
TWiki CGI and Command Line Scripts |
| configure is the browser script used for inspection and configuration of the TWiki configuration. None of the parameters to this script are useable for any purpose except configure . See configure.
edit |
|
< < | The edit scipt understands the following parameters, typically supplied by HTML input fields: |
> > | The edit script understands the following parameters, typically supplied by HTML input fields: |
|
|
|
< < |
action |
Optional. Use the editaction template instead of the standard edit. If action=text, then hide the form. If action=form hide the normal text area and only edit the form. |
|
|
> > |
action |
Optional. Use the editaction template instead of the standard edit. If action=text, then hide the form. If action=form hide the normal text area and only edit the form. You can change the Edit/Edit Raw buttons to always append the action parameter in skins like Pattern and Classic by setting the topic or preference variable EDITACTION to the value text or form . To edit the topic once the EDITACTION is defined as form simply remove the action=form from the browser URL of the edit script and reload the edit window |
|
|
|
onlynewtopic |
If set, error if topic already exists |
|
onlywikiname |
If set, error if topic name is not a WikiWord |
|
|
|
< < |
templatetopic |
The name of the template topic, copied to get the initial content |
|
|
> > |
templatetopic |
The name of the template topic, copied to get the initial content (new topic only) |
|
|
|
text |
Initial text for the topic |
|
topicparent |
The parent topic |
|
|
|
< < |
formtemplate |
Name of the form to instantiate in the topic. Overrides the form set in the templatetopic if defined. |
|
|
> > |
formtemplate |
Name of the form to instantiate in the topic. Overrides the form set in the templatetopic if defined. (will remove the form is set to 'none') |
|
|
|
contenttype |
Optional parameter that defines the application type to write into the CGI header. Defaults to text/html . May be used to invoke alternative client applications |
|
anyname |
Any parameter can passed to the new topic; if the template topic contains %URLPARAM{"anyname"}% , it will be replaced by its value |
|
breaklock |
If set, any lease conflicts will be ignored, and the edit will proceed even if someone is already editing the topic. |
|
|
|
onlynewtopic |
If set, error if topic already exists |
|
onlywikiname |
If set, error if topic name is not a WikiWord |
|
dontnotify |
if defined, suppress change notification |
|
|
|
< < |
templatetopic |
Name of a topic to use as a template for the text and form |
|
|
> > |
templatetopic |
Name of a topic to use as a template for the text and form (new topic only) |
|
|
|
text |
New text of the topic |
|
forcenewrevision |
if set, forces a revision even if TWiki thinks one isn't needed |
|
topicparent |
If 'none' remove any current topic parent. If the name of a topic, set the topic parent to this. |
|
|
|
< < |
formtemplate |
if defined, use the named template for the form |
|
|
> > |
formtemplate |
if defined, use the named template for the form (will remove the form is set to 'none') |
|
|
|
editaction |
When action is checkpoint , add form or replace form... , this is used as the action parameter to the edit script that is redirected to after the save is complete. |
|
originalrev |
Revision on which the edit started. |
|
edit |
The script to use to edit the topic when action is checkpoint |
edit |
|
|
- The first sequence of ten or more
X characters in the topic name will be converted to a number such that the resulting topic name is unique in the target web.
- When the action is
save , checkpoint , quietsave , or preview :
- The new text is taken from the
text parameter, if it is defined,
|
|
< < |
-
-
- otherwise it is taken from the
templatetopic , if it is defined,
|
> > |
-
-
- otherwise it is taken from the
templatetopic , if it is defined, (new topic only)
|
|
-
-
- otherwise it is taken from the previous version of the topic, if any,
- The name of the new form is taken from the
formtemplate , if defined
|
|
< < |
-
-
- otherwise it is taken from the
templatetopic , if defined,
|
> > |
-
-
- otherwise it is taken from the
templatetopic , if defined, (new topic only)
|
|
-
-
- otherwise it is taken from the previous version of the topic, if any,
- otherwise no form is attached.
- The value for each field in the form is taken from the query, if it is defined
|
|
< < |
-
-
- otherwise it is taken from the
templatetopic , if defined,
|
> > |
-
-
- otherwise it is taken from the
templatetopic , if defined, (new topic only)
|
|
-
-
- otherwise it is taken from the previous version of the topic, if any,
- otherwise it defaults to the empty string.
|