Difference: TWikiScripts (5 vs. 6)

Revision 62007-01-13 - Main.TWikiContributor

Line: 1 to 1
 

TWiki CGI and Command Line Scripts

Line: 55 to 55
 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

Changed:
<
<
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:
 
Parameter Description Default
Changed:
<
<
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  
Changed:
<
<
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  
Changed:
<
<
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.  
Line: 232 to 232
 
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  
Changed:
<
<
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.  
Changed:
<
<
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
Line: 250 to 250
 
  1. 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.
  2. When the action is save, checkpoint, quietsave, or preview:
    1. The new text is taken from the text parameter, if it is defined,
Changed:
<
<
      • 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,
    1. The name of the new form is taken from the formtemplate, if defined
Changed:
<
<
      • 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.
    1. The value for each field in the form is taken from the query, if it is defined
Changed:
<
<
      • 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.
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiScripts