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
--
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