Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease01Feb2003
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: AIX 4.3.3
Web server: Apache
Perl version: 5.005_03
Client OS: Windows 2000 Professional
Web Browser: Microsoft Internet Explorer 6.0

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

Topic revision: r3 - 2004-02-01 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, 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.