The default template use odd and even class for each items.
The issue is when you use grouping field, the odd/even classe doesn't reinitialiazed at each group.
For example suppose you have a view which send 8 results, group by a group fild which has 3 values A, B,C, such as
A -> 3 items
B->3 items
C-> 2 items
I have the field
A
item 1 -> odd
item 2 -> even
item 3 -> odd
B
item 4 -> even
item 5 -> odd
item 6 -> even
C
item 7 -> odd
item 8 -> even
If i want to display my items in 2 columns with this properties
odd -> float:left
event -> float: right.
The correct order dosen't match because the first item is not the same.
I think the cprrect implementation would be
A
item 1 -> odd
item 2 -> even
item 3 -> odd
B
item 4 -> odd
item 5 -> even
item 6 -> odd
C
item 7 -> odd
item 8 -> even
Comments
Comment #1
manuel garcia commentedJust wanted to confirm this is the case, I'll dive into it when I get some free time from work. I'm not sure this is doable but we'll see.
Patches are welcome of course:
These classes are setup in the function
template_preprocess_views_view_accordion, line 58 of views_accordion.module file.Comment #2
manuel garcia commentedActualy, I just double checked, this isn't the case after all, at least I'm not seeing with views 3.
Are you using views 2? can you check if it happens with views 3? It could be a bug in views 2...
Comment #3
Roulion commentedI use view3. Il will try with the last dev version and tell you
Comment #4
Roulion commentedI still have the issue. (even in 1..5 version.)
Comment #5
rstark commentedJust wondering if this has ever been resolved? I am trying to zebra-stripe my accordion listing and could use some pointers.
Thanks!
Comment #6
manuel garcia commentedClosing now due to 6.x no longer supported.
Comment #7
graysonecooper commentedDuplicate of: https://www.drupal.org/project/drupal/issues/1383696