r4 - 04 May 2006 - 00:52:36 - SamHaslerYou are here: TWiki >  Codev Web > EditCgiScript
Tags:
, create new tag
Module name edit EditCgiScript
Location TWIKIROOT/bin
Summary  
Primary Author Main.

CVS history http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/edit
CVS alpha http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/edit?rev=HEAD&content-type=text/vnd.viewcvs-markup
Contributing authors (see CVS History)
IsClass? NO
First TWikiRelease to be filled out

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

PublicMethods?

This section lists the methods that can be used by the scripts and by other modules

  • ...

PrivateMethods?

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 ( & -> &amp, 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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo