[phplib] templates: toggling blocks From: Jens Benecke (jens <email protected>)
Date: 04/14/01

Hi,

on many sites that output a list of some sort, alternating background
colors are used so that you keep track of where you are reading in the
list.

How would I accomplish this with PHPLIBs templates? Is there a cleaner
solution than defining a CSS variable as {CSS} and then set_var'ing this
over the result-loop? (which would mean that I'm not strictly separating
design from code any more, which I dislike)

Or had I better use sqltable for this?

-- 
Jens Benecke                   "Und deshalb sollte man ja auch immer _alle_
                                 Editoren installieren:  XEmacs _und_ Vim."
				                             -- Sven Guckes
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored