1

Possible Duplicate:
Dynamically adding a CSS class to a view row with template.php

I would like to have the node nid to be used in the DIVs of a views based table layout. When I use "style settings" / "customize field HTML" css class "divname[nid]" it has no effect (yes, I had nid added as the first field in the view ...).

What I'm trying to do is hide a div and a link in that table row when I click on links in the same table row. See my previous questions here and here.

2
  • 1
    This link should help you drupal.stackexchange.com/questions/3059/…
    – Chris
    Commented Jan 25, 2012 at 5:13
  • that's it, thanks!!!. Just had to change the foreach loop to $vars['row_classes'][$id][] = 'nid'.$data->nid;
    – uwe
    Commented Jan 25, 2012 at 6:05

0

Browse other questions tagged or ask your own question.