Tags:
delete_me1Add my vote for this tag create new tag
, view all tags

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.

Topic revision: r1 - 2006-06-16 - MeredithLesly
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.