Last updated: 2005-12-04 18:04
Description
This is a plugin to enable style-swapping in list forms. Each time it is called, it alternately returns the text specified by its optional odd or even attributes—or “odd” and “even” by default.
Download
Usage
Format your article form so that chh_flipflop is the class name in some sort of container tag:
<div class="<txp:chh_flipflop odd="yellow" even="white" />"> <txp:title /> </div>
Then create a corresponding stylesheet entry:
/* flipflop styles */
.green {
background: #5f5;
}
.white {
background: #fff;
}
Caveats
chh_flipflop was originally a helper tag bundled with chh_article_custom. If you are using a version of chh_article_custom prior to 1.0, you already have a version of chh_flipflop. The two versions cannot co-exist.
Changelog
v1.01 (2006-01-29)
- Fixed bad argument error.
v1.00 (2005-12-04)
- First stand-alone version.