| Module name |
edit EditCgiScript |
| Location |
TWIKIROOT/bin |
| Summary |
|
| Primary Author |
Main. |
Purpose
To ...
Used by
Diagram:
TWiki Modules used
This CGI script depends on the following TWiki modules for functionality:
External Modules used
This CGI script also depends on the following external modules
This section lists the methods that can be used by the scripts and by other modules
These do not need to be not documented yet
Please see
CodevDocumentationProject and
CodevDocumentationProjectDev for comments on the format of these pages.
--
MartinCleaver - 23 Jun 2002
additional parameters:
%CODE{"perl"}%
my $saveCmd = $query->param( 'cmd' ) || "";
my $breakLock = $query->param( 'breaklock' ) || "";
my $onlyWikiName = $query->param( 'onlywikiname' ) || "";
%ENDCODE%
%CODE{"perl"}%
=sub edit= <br/>
my $wikiUserName = &TWiki::userToWikiName( $userName );
# prevent non-Wiki names?
# Read topic
# Special save command (and user in TWiki::superAdminGroup)
# Check for locks
# warn user that other person is editing this topic
# lock topic
my $formTemplate = $query->param( "formtemplate" ) || "";
my $templateTopic = $query->param( "templatetopic" ) || "";
# Get edit template, standard or a different skin
# set parent ( param topicparent )
# Processing of formtemplate - comes directly from query parameter formtemplate ,
# or indirectly from webtopictemplate parameter.
# repRev
# html-ify the text ( & -> &, etc. )
# beforeEditHandler() hook
# log topic edit
# render
# Don't want to render form fields, so this after getRenderedVersion
# interpolate variables FORMTEMPLATE, SCRIPT, TEXT, remove nop
# send full www header
# send body text
%ENDCODE%
this is
really out-of-date. it would be nice to include the POD from an
SVN link, but i don't think that will work because of sourceforge.net restrictions on outbound traffic.
i wonder what else can be done to keep this in sync.
--
WillNorris - 20 Jan 2005