Hi,
I was searching for a way to add to a node specific fields from another outside node. Finally I found that one way is to use a view and use nodereference in the relationfield and nod nid as the argument. Now I'm looking for a way to embelem specific fields from the view.
I know the the code to embelm is:
<?php print views_embed_view($view_name, 'default', $node->nid);?>
But it will embelem the entire view, is there a way to emelem specifc fields from the view? so I can theme them in the template?
Thanks in advance,
Sooki
Comments
Comment #1
dawehneri think this is not possible
but you could create a view which just prints out one field, or you could get just the resulsts and not embed the output.
Comment #2
beautifulmindFor me, its showing nothing!!!
Any solution?
Comment #3
dawehnerwhat do you want to show? only one certain field?
if yes create a field which takes the nid as argument and has a single field as output
Comment #4
beautifulmindI wanna show all the data from view, but it shows nothing.
Comment #5
nevets commentedWhere does your code reside?
Comment #6
beautifulmindI am developing custom module and within code, am trying to call the view.
Comment #7
nevets commentedSo how is $view_name and $node set? Are you sure they have valid values?
Comment #8
esmerel commentedNo response to request for more info.