create new tag
, view all tags
Module name edit EditCgiScript
Location TWIKIROOT/bin
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


To ...

Used by


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' ) || "";


=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

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 | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-05-04 - SamHasler
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.