I have been using viewreference fields successfully for awhile and there are several methods to pass the nid when in a full node view (I.e. default parameter using the URL, etc.). However, I need to display this field as part of a 'Table' style view, which means that I need to somehow pass the nid as a parameter without relying on the URL. Is this possible?

I've been looking into various methods to get this data for a couple days now and still unsuccessful. I've also tried separate fields 'computed field' or 'dynamic field' and still cannot get the nid to the viewreference field. Any help is appreciated.

Comments

danielb’s picture

Hmm it seems the method I've used to evaluate the PHP code prevents this information from being available. I will work on changing that soon.

stacysimpson’s picture

Well, I finally figured out a work-around. I had to create a custom 'views-view-field.tpl.php' theme for the view/field. In there, the node identifier is available: $row->nid. It would be nice to have a cleaner solution though...thanks!

danielb’s picture

Category: support » feature
Status: Active » Fixed

New version can access $node straight from the args

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.