View Full Version : Alternate Colors in Repeat Region
fragop363190
05-20-2009, 12:14 AM
I want my results page , Public page using Public DataAssists template with single record per row, to have alternate color on repeat.
DataAssist is using Alternate Colors only for Admin template. Shouldn't it add it to Public template too?
I tried applying it through the behaviors panel but it says it can be added only with DataAssist Wizzard....
How can i addit to the repeat region of the page that was constructed by DataAssist?
Ray Borduin
05-20-2009, 07:17 AM
You would have to add the code manually. A description is offered here: http://www.webassist.com/forums/showthread.php?t=1136
fragop363190
05-20-2009, 10:24 PM
1. Do i need to create my own styles for even and odd number of rows? Which styles are the defaults of WebAssist in case i want to use those?
2. This is the code i suppose for the colors/different class applied. Please verify it and give me an example where to put the class names (2 one for even numbers one for odd) so it works properly. Thank you in advance.
$WARRT_AltClass1 = new WA_AltClassIterator(explode("|", "prod-a|prod-b|prod-c"));
Cause here if i am correct i see 3 different styles and i need 2. Unless your class/iterator takes unlimited arguements of styles and just apply them in order and round round it goes again. Please explain a bit further.
Ray Borduin
05-21-2009, 07:40 AM
That is exactly how it works. If you want two, just pass two.
$WARRT_AltClass1 = new WA_AltClassIterator(explode("|", "prod-a|prod-b"));
it takes unlimited arguments and applies them in order and around it goes.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.