r1 - 16 Jun 2006 - 18:24:10 - MeredithLeslyYou are here: TWiki >  Codev Web > CommonTagsHandler
Tags:
, create new tag

commonTagsHandler($text, $topic, $web )

  • $text - text to be processed
  • $topic - the name of the topic in the current CGI query
  • $web - the name of the web in the current CGI query
This handler is called by the code that expands %TAGS% syntax in the topic body and in form fields. It may be called many times while a topic is being rendered.

Plugins that want to implement their own %TAGS% with non-trivial additional syntax should implement this function. Internal TWiki variables (and any variables declared using TWiki::Func::registerTagHandler) are expanded before, and then again after, this function is called to ensure all %TAGS% are expanded.

For variables with trivial syntax it is far more efficient to use TWiki::Func::registerTagHandler (see initPlugin).

NOTE: when this handler is called, <verbatim> blocks have been removed from the text (though all other HTML such as <pre> blocks is still present).

NOTE: meta-data is not embedded in the text passed to this handler.

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: 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