plugin1Add my vote for this tag create new tag
, view all tags

beforeSaveHandler($text, $topic, $web, $meta )

  • $text - text with embedded meta-data tags
  • $topic - the name of the topic in the current CGI query
  • $web - the name of the web in the current CGI query
  • $meta - the metadata of the topic being saved, represented by a TWiki::Meta object.

This handler is called each time a topic is saved.

NOTE: meta-data is embedded in $text (using %META: tags). If you modify the $meta object, then it will override any changes to the meta-data embedded in the text. Modify either the META in the text or the $meta object, never both. You are recommended to modify the $meta object rather than the text, as this approach is proof against changes in the embedded text format.

Since: TWiki::Plugins::VERSION = '1.010'

Topic revision: r1 - 2006-06-16 - MeredithLesly
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.