HS noderef displays node titles when selecting nodes in reference fields.

If you use views to select the nodes that can be referenced ("View used to select the nodes:" is set in the cck field) and you want to display the view's result instead of node titles you can check the following (probably quite "dirty") patch.

The _nodereference_potential_references() returns "rendered" values that can be used instead of node titles. Editing the following two lines in hs_nodereference.module will do the trick.

460       $root[$nid] = strip_tags($value['rendered']);
539       $children[$nid] = strip_tags($value['rendered']);
CommentFileSizeAuthor
using_noderef_views_results.patch745 bytesmtcs

Comments

justmad’s picture

U r my hero

Thanks

drupalnesia’s picture

@mtcs: what is your HS version for your HS Node Reference?

mtcs’s picture

Sorry for the late answer.
I'm using 6.x-1.x-dev (2011-feb-25)