using an omega subtheme
I have created a view and set it up to include row classes
such as "odd views-row-first" but they don't get outputted in the HTML

from the view's theme information I can confirm that
sites\all\themes\omega\templates\views\views-view-table.tpl.php
is used to render the specific view

if I erase the tpl.php file and clear cache (thinking the view will handle the theming) the view gives lots of warnings and only the THEAD is displayed !!

CommentFileSizeAuthor
#2 views-view-table.tpl_.php_.txt952 bytesGiorgosK
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GiorgosK’s picture

using in omega views-view-table.tpl.php

    <tr<?php print $row_attributes[$delta]; ?>>

gives wrong classes
instead the default views-view-table.tpl.php

      <tr <?php if ($row_classes[$delta]) { print 'class="' . implode(' ', $row_classes[$delta]) .'"';  } ?>>

gives good results

GiorgosK’s picture

FileSize
952 bytes

effectivelly the omega views-view-table.tpl.php
outputs the TABLE classes as ROW classes
(which probably means that $row_attributes is the same as $attributes)

using the default VIEWS views-view-table.tpl.php or the attached (modified) views-view-table.tpl.php template works OK

but I am not providing a patch since not sure this is the correct solution ...

hejeva’s picture

I was seeing this bug negatively affect a view that was using draggableviews. I couldn't see the arrows to reorder and it would only give row weights.
Implementing the fix from #1 fixes draggable views and omega 4.x.dev.

msmithcti’s picture

Status: Active » Postponed (maintainer needs more info)

Unable to reproduce this with the latest dev version of Omega. This was on a fresh install, a view of node titles in the tables views display. The correct row classes (odd/even views-row-[first/last]) are printed in the table rows. I've also tried this with a view using draggable views.

If you are still getting this bug can you please provide more info on how to reproduce?

hejeva’s picture

I misspoke on what version I was using. A the time it was beta3 version.

  • Omega 7.x-4.0-beta3
  • Views 7.x-3.7
  • ctools 7.x-1.3
  • Entity 7.x-1.1
  • Draggable views 7-x-2.0

Draggable views is broken when using omega.

I did a update of a draggable view and it works with:

  • Omega 7.x-4.0-beta4
  • Views 7.x-3.7
  • ctools 7.x-1.3
  • Entity 7.x-1.1
  • Draggable views 7-x-2.0

Works..

So what I was seeing has been fixed.

fubhy’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Okay.