Note: All keys should be used read-only, except for comment which can be modified. Example usage:
my( $attrHashRef, $topic, $web ) = @_; $$attrHashRef{'comment'} .= " (NOTE: Extracted from blah.tar.gz)";
ObjectMethod afterAttachmentSaveHandler ($attachmentAttrHash,$topic,$web,$error)deal with an uploaded attachment between the upload and save-to-store processes. It is invoked as per other plugins.
Keys in $attrHashRef:
Note: The hash is read-only
ObjectMethod writeHeaderHandler () -> $headersCalled by TWiki::writePageHeader. DEPRECATED do not use! DEPRECATED Use modifyHeaderHandler instead. it is a lot more flexible, and allows you to modify existing headers as well as add new ones. It also works correctly when multiple plugins want to modify headers.
ObjectMethod modifyHeaderHandler (\@headers,$query)
ObjectMethod redirectCgiQueryHandler () -> $resultCalled by TWiki::redirect
ObjectMethod renderFormFieldForEditHandler ($name,$type,$size,$value,$attributes,$possibleValues) -> $htmlThis handler is called before built-in types are considered. It generates the HTML text rendering this form field, or false, if the rendering should be done by the built-in type handlers.
Note that a common application would be to generate formatting of the field involving generation of javascript. Such usually also requires the insertion of some common javascript into the page header. Unfortunately, there is currently no mechanism to pass that script to where the header of the page is visible. Consequentially, the common javascript may have to be emitted as part of the field formatting and might be duplicated many times throughout the page.
ObjectMethod renderWikiWordHandler () -> $resultChange how a WikiWord is rendered Originated from the TWiki:Plugins.SpacedWikiWordPlugin hack
|
|
|
||||||||||||||||||||||||||