With views I have made a table of nodes where one of the fields is the title of a referenced node.

When using views.getView only the node id and not the title of the node is returned. Is there a way to do this?

Comments

heydere’s picture

Try using the patch I posted here:

http://drupal.org/node/142291

It returns fields from the actual view object rather than node objects, and can also restrict the fields returned to only those you want.

gordns’s picture

Yes, I was thinking so too, so I already tried your patch.. But, no luck, still only gets the nid field.

heydere’s picture

I looked at my patch again and can reproduce this. We need to have this, including node references, for my day job so I'll look more closely tomorrow. It looks like I'll have to do something similar to what they did in the Views Bonus CVS export module to get all of the information out correctly.

heydere’s picture

Status: Active » Closed (duplicate)

I'm marking this as a duplicate. I'm uploading a revised patch that should take care of your problem.

It will be available at http://drupal.org/node/142291