Needs work
Project:
Hierarchical Select Node Reference
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2011 at 11:55 UTC
Updated:
19 Jun 2011 at 09:51 UTC
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']);
| Comment | File | Size | Author |
|---|---|---|---|
| using_noderef_views_results.patch | 745 bytes | mtcs |
Comments
Comment #1
justmad commentedU r my hero
Thanks
Comment #2
drupalnesia commented@mtcs: what is your HS version for your HS Node Reference?
Comment #3
mtcs commentedSorry for the late answer.
I'm using 6.x-1.x-dev (2011-feb-25)