Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 !!
Comment | File | Size | Author |
---|---|---|---|
#2 | views-view-table.tpl_.php_.txt | 952 bytes | GiorgosK |
Comments
Comment #1
GiorgosKusing in omega views-view-table.tpl.php
gives wrong classes
instead the default views-view-table.tpl.php
gives good results
Comment #2
GiorgosKeffectivelly 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 ...
Comment #3
hejeva CreditAttribution: hejeva commentedI 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.
Comment #4
msmithcti CreditAttribution: msmithcti commentedUnable 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?
Comment #5
hejeva CreditAttribution: hejeva commentedI misspoke on what version I was using. A the time it was beta3 version.
Draggable views is broken when using omega.
I did a update of a draggable view and it works with:
Works..
So what I was seeing has been fixed.
Comment #6
fubhy CreditAttribution: fubhy commentedOkay.