Tags:
create new tag
, view all tags

Question

Hi,

I am using comment plugin and when I add the new comments, they are updated accordingly. But all the comments are on same color and same backgorund color. Could anybody please let me know , how to change the comments to be in different color, so that can be differentiated easily.

Thanks

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris9
Web server: Apache1.3
Perl version: 5.6.1
Client OS: Windows
Web Browser: IE
Categories: Plugins

-- BhuvanaAradhya - 03 Oct 2006

Answer

One way I did it was to define my own "Type" as outlined in the CommentPlugin documentation. In that type, I actually have it forming my comments as a table in twiki markup. Then you can put the %TABLE{}% tag with anything you want directly above the first comment and voila, you have lots of control.

-- MatthewCardozo - 06 Oct 2006

Thanks for the reply. Can you please give an example , I am unable to find colouring options in type.

-- BhuvanaAradhya - 07 Oct 2006

Sure, here goes:

%TMPL:DEF{outputtimenosigtable}%| *%SERVERTIME{$mo/$day $hou:$min}%* | %URLPARAM{comment}% | %TMPL:END%
That defines what I want the output to be...Then use something like this to use that newly defined type...
%TMPL:DEF{OUTPUT:IRT}%%TMPL:P{outputtimenosigtable}% 
%POS:BEFORE%%TMPL:END%
That will give you a table row for each entry, which you can manipulate by putting a %TABLE{}% above it...
%TABLE{sort="on" initsort="1" initdirection="down"}%
| *Time 24hr* | *Comment* |
%COMMENT{type="IRT" jumpto="sequence"}%
I added a header row as well but you don't need that if you don't want.

I hope that helps.

-- MatthewCardozo - 13 Oct 2006

 
Change status to:
Topic revision: r5 - 2006-11-27 - ArthurClemens
 
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.