1 ---+ Package =TWiki::UI::Edit=
8 ---++ StaticMethod *edit* <tt>($session)</tt>
11 This method is designed to be
12 invoked via the =UI::run= method.
13 Most parameters are in the CGI query:
15 | =cmd= | Undocumented save command, passed on to save script |
16 | =onlywikiname= | if defined, requires a wiki name for the topic name if this is a new topic |
17 | =onlynewtopic= | if defined, and the topic exists, then moans |
18 | =formtemplate= | name of the form for the topic; will replace existing form |
19 | =templatetopic= | name of the topic to copy if creating a new topic |
20 | =skin= | skin(s) to use |
21 | =topicparent= | what to put in the topic prent meta data |
22 | =text= | text that will replace the old topic text if a formtemplate is defined (what the heck is this for?) |
23 | =contenttype= | optional parameter that defines the application type to write into the CGI header. Defaults to text/html. |
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 |