HI,

Would it be possible to support Rate Module when using 'Display Suite Nodes' in views.

The code to print the Rate Module output in content is:

if (arg(0) == 'node' && is_numeric(arg(1)) && $node = node_load(arg(1))) {
  node_invoke_nodeapi($node, 'view');
  print $node->rate_NAME['#value'];
}

I have created a Node Display custom code field but...it is not working in views.

Comments

swentel’s picture

Status: Active » Fixed

Well, on a view, arg(1) will fail and thus not display the field. However, with a custom field, the object is passed so you should be able to change your custom field to this:

  print $object->rate_NAME['#value'];

So $object, not $node. A bit like on #870916: Support for Vote Up/Down

swentel’s picture

Status: Fixed » Closed (fixed)