data/TWiki/TWikiUIEditDotPm.txt
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/TWikiUIEditDotPm.txt	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +---+ Package =TWiki::UI::Edit=
     1.5 +
     1.6 +Edit command handler
     1.7 +
     1.8 +
     1.9 +%TOC%
    1.10 +
    1.11 +---++ StaticMethod *edit* <tt>($session)</tt>
    1.12 +
    1.13 +Edit command handler.
    1.14 +This method is designed to be
    1.15 +invoked via the =UI::run= method.
    1.16 +Most parameters are in the CGI query:
    1.17 +
    1.18 +| =cmd= | Undocumented save command, passed on to save script |
    1.19 +| =onlywikiname= | if defined, requires a wiki name for the topic name if this is a new topic |
    1.20 +| =onlynewtopic= | if defined, and the topic exists, then moans |
    1.21 +| =formtemplate= | name of the form for the topic; will replace existing form |
    1.22 +| =templatetopic= | name of the topic to copy if creating a new topic |
    1.23 +| =skin= | skin(s) to use |
    1.24 +| =topicparent= | what to put in the topic prent meta data |
    1.25 +| =text= | text that will replace the old topic text if a formtemplate is defined (what the heck is this for?) |
    1.26 +| =contenttype= | optional parameter that defines the application type to write into the CGI header. Defaults to text/html. |
    1.27 +| =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 |
    1.28 +
    1.29 +