[development] Styling comment blocks according to vote results
Anton
anton.list at gmail.com
Tue Jan 16 19:25:26 UTC 2007
On 17/01/07, Ben Campbell <ben at scumways.com> wrote:
> But I'm not 100% sure of the best way to apply different looks to
> differently rated comments.
I'd be inclined to make a $ratingclass (or whatever) variable that
contains your CSS class available to the comment.tpl.php template.
http://drupal.org/node/16383
Then just make use of it (you could check whether it exists first) in
your template.
--
Cheers
Anton
More information about the development
mailing list