1 # <a name="Package <code>TWiki::UI::Edit="></a> Package =TWiki::UI::Edit
7 <li><a href="#Package =TWiki::UI::Edit="> Package TWiki::UI::Edit</a><ul>
8 <li><a href="#StaticMethod <strong>edit</strong> ($session)"> StaticMethod edit <tt>($session)</tt></a></li>
14 ## <a name="StaticMethod <strong>edit</strong> ($session)"></a> [[StaticMethod]] **edit** `($session)`
16 Edit command handler. This method is designed to be invoked via the `TWiki::UI::run` method. Most parameters are in the CGI query:
18 <table border="1" cellpadding="0" cellspacing="0">
20 <td><code>cmd</code></td>
21 <td> Undocumented save command, passed on to save script </td>
24 <td><code>onlywikiname</code></td>
25 <td> if defined, requires a wiki name for the topic name if this is a new topic </td>
28 <td><code>onlynewtopic</code></td>
29 <td> if defined, and the topic exists, then moans </td>
32 <td><code>formtemplate</code></td>
33 <td> name of the form for the topic; will replace existing form </td>
36 <td><code>templatetopic</code></td>
37 <td> name of the topic to copy if creating a new topic </td>
40 <td><code>skin</code></td>
41 <td> skin(s) to use </td>
44 <td><code>topicparent</code></td>
45 <td> what to put in the topic prent meta data </td>
48 <td><code>text</code></td>
49 <td> text that will replace the old topic text if a formtemplate is defined (what the heck is this for?) </td>
52 <td><code>contenttype</code></td>
53 <td> optional parameter that defines the application type to write into the CGI header. Defaults to text/html. </td>
56 <td><code>action</code></td>
57 <td> 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 </td>