I added some code to views_bonus_grid.module to be able to theme the grid via odd and even columns and rows.

Therefore there are added classes view-grid-odd-odd, view-grid-odd-even, view-grid-even-odd and view-grid-even-even> to <code><td class='view-grid-item">...</td>.

Patch is attached.

CommentFileSizeAuthor
views_bonus_grid.patch1.19 KBderhasi

Comments

SeanBannister’s picture

Haven't had a chance to try out the patch but I really like this idea.

neclimdul’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

committed a similar patch to #323787: Patch to allow Zebra classes

If there is a good case to provide it like this I'll listen but I think the committed patch is more efficient.