Using Format Grid w/ Striping Enabled Does Not Work

Created on 11 December 2012, over 11 years ago
Updated 21 December 2023, 6 months ago

Basically, the odd and even css tags are not being applied to the grid.

Had to edit theme/theme.inc be adding the following:

$row_classes[] =  'row-' . (($row_number + 1) % 2 ? 'odd' : 'even');

Please see the following code snippet:

    if ($row_class_special) {
      $row_classes[] =  'row-' . (($row_number + 1) % 2 ? 'odd' : 'even');
      if ($row_number == 0) {
        $row_classes[] =  'row-first';
      }
      if (count($rows) == ($row_number + 1)) {
        $row_classes[] =  'row-last';
      }
    }

Testing working. Added some CSS to my custom theme CSS and good to go. Not sure why the row-first and row-last were included but the striping code was omitted.

πŸ› Bug report
Status

RTBC

Version

3.0

Component

page displays

Created by

πŸ‡ΊπŸ‡ΈUnited States polskikrol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024