data/TWiki/TWikiUIEditDotPm.txt
author Colas Nahaboo <colas@nahaboo.net>
Mon, 11 Aug 2008 20:33:37 +0200
changeset 2 7bc60a767fa4
parent 0 414e01d06fd5
permissions -rw-r--r--
TWiki-4.2.2 Release
colas@0
     1
---+ Package =TWiki::UI::Edit=
colas@0
     2
colas@0
     3
Edit command handler
colas@0
     4
colas@0
     5
colas@0
     6
%TOC%
colas@0
     7
colas@0
     8
---++ StaticMethod *edit* <tt>($session)</tt>
colas@0
     9
colas@0
    10
Edit command handler.
colas@0
    11
This method is designed to be
colas@0
    12
invoked via the =UI::run= method.
colas@0
    13
Most parameters are in the CGI query:
colas@0
    14
colas@0
    15
| =cmd= | Undocumented save command, passed on to save script |
colas@0
    16
| =onlywikiname= | if defined, requires a wiki name for the topic name if this is a new topic |
colas@0
    17
| =onlynewtopic= | if defined, and the topic exists, then moans |
colas@0
    18
| =formtemplate= | name of the form for the topic; will replace existing form |
colas@0
    19
| =templatetopic= | name of the topic to copy if creating a new topic |
colas@0
    20
| =skin= | skin(s) to use |
colas@0
    21
| =topicparent= | what to put in the topic prent meta data |
colas@0
    22
| =text= | text that will replace the old topic text if a formtemplate is defined (what the heck is this for?) |
colas@0
    23
| =contenttype= | optional parameter that defines the application type to write into the CGI header. Defaults to text/html. |
colas@0
    24
| =action= | Optional. If supplied, use the edit${action} template instead of the standard edit template. An empty value means edit both form and text, "form" means edit form only, "text" means edit text only |
colas@0
    25
colas@0
    26