I was messing around with Views 3.0 Alpha 3 and noticed the classes were all messed up when using the 'unformatted' type in views. Instead of getting the usual classes:
views-row views-row-1 views-row-odd views-test views-row-first
I was getting on row 1:
A
row 2:
r
row 3:
r

Problem seemed to be in the 'zen_process' function imploding the 'classes_array' into the 'classes' var, while views 3 templates seem to expect the 'classes' var to be a multidimensional array. I solved the above just by commenting out the function for now. I realize Views 3 is still in Alpha so this is more a note for others having problems.

CommentFileSizeAuthor
#2 views3-clobber.patch719 bytesJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jon Nunan’s picture

Hmmm... killing zen_process fixed the row classes issue, but the div wrapper lost its classes. Currently trying out:

function zen_process(&$vars, $hook) {
  if (array_key_exists('classes_array', $vars) && !isset($vars['classes'][0])) {
    $vars['classes'] = implode(' ', $vars['classes_array']);
  }
}

and it seems to be working OK.

JohnAlbin’s picture

FileSize
719 bytes

This sounds like a duplicate of #564068: Views classes are missing from $classes variable, but I think this is indeed Views 3-specific.

How about this?

JohnAlbin’s picture

Title: Views 3 and Zen CSS classes » Zen clobbers Views 3 classes
Status: Active » Fixed

Let me know if I didn't fix it. :-)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.