[support] trying to create zebra striping in custom block

Neil Coghlan neil at esl-lounge.com
Sat Jun 12 15:06:34 UTC 2010


I have a custom block showing the users whose content has attracted most pageviews.

part of my code is this:

print "<tr class=\"";
print $zebra;
print "\"><td>";

this is a drupal 6 installation and I don't seem to be able to get the odd/even classes I'm looking for. If I put print "odd", they all come out grey, "even" and they all come out white, so I know the syntax of the code is fine...I just can't get the zebra variable working. 

any tips what I'm failing to do??

Neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100612/d41ba1ca/attachment.html 


More information about the support mailing list