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?
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
Comment #1
heydere commentedTry 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.
Comment #2
gordns commentedYes, I was thinking so too, so I already tried your patch.. But, no luck, still only gets the nid field.
Comment #3
heydere commentedI 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.
Comment #4
heydere commentedI'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