Question
Is it possible to dynamically change the value of "custom"
TWikiVariables, at the topic level ---- either by using templates, or skins, or some other means ?
Environment
Prepatory Information
I have created a pair of custom
TWikiVariables in order to build a 'COMMENT' feature. The very basic feature allows users to hide a 'COMMENT' inside of a standard icon. Two variables are defined like this in
TWikiPreferences:
* Set COMMENT = <img src="%WIKIPICTURE%/comment.bmp" alt="
* Set ENDCOMMENT = " />
They're used by surrounding the user's comment with the variables, like this:
%COMMENT% {comment goes here} %ENDCOMMENT%
Description of the Problem
The problem arises when folks want to
print the topic. Only the icon prints, and not the comment text.
Also -- it would be nice to build a "show all comments" or "hide all comments" button (template).
For example, the "show comments" template, would have new values for these variables:
* Set COMMENT = <i>
* Set ENDCOMMENT = </i>
Can someone please tell me how to dynamically adjust the
value of the
TWikiVariables, based on web topic name, template, or skin ?
Thank you !
--
KeithHelfrich - 28 Oct 2003
Answer