Hi, there.
I try to make a union page by viewfield and node_reference.module, and I failed at last step.
My idea is it: I have created a content type, called 'teacher', and another one called 'course'. In course content, I have set a CCK's node reference field(called it 'C_field'), and refer to the nid of teacher node.
Then, I have created a views table, called 'teacher_course', set C_field as a argument, display all value. It is work at test: when I type the nid nombers of different teacher nodes in url address, the teacher_course pages display the courses belong to those teachers correspondingly.
At last, I try to set a viewfield in the teacher node type. By default, I set the 'teacher_course' as the candidate views and '%nid' as the argument. Then I go to the teacher nodes one by one, set the same thing in their viewfield.
But, all the result pages display 'No data' message under the viewfield's label, not correct tables.
My friend told me that he used the 5.0 version viewfield.module and it's work by exactly the same setting steps as I do.
So I thought this is a bug in 4.7 dev version.
TKY
Comments
Comment #1
tky commentedHi, I have tried again, but it's still show nothing.
However, if I leave the argument field (in every individual pages) blank, it would show the views table, without filter of course.
So I thought maybe just some functions went wrong. Please put eyes on this, thanks.
TKY
Comment #2
mfredrickson commentedI have not had any problems with node ref fields. Can you attach a screen shot of the node editing form with the viewfield in it? That might help.
Comment #3
tky commentedThanks mfredrickson.
Due to my site is coded in Chinese(cht), you might not understand the message in the screen shot. But you may go to visit it.
http://www.phil.nthu.edu.tw/teachercourse/619
In this page, it is a views table with the %nid argument, the value is '619'. You can see the data filter by the nid of teacher node.
http://www.phil.nthu.edu.tw/teacher/619
At the bottom of this page, I set the viewsfield refer to the teachercourse views table and %nid as the argument. But it comes out no result.
My setting exactly was:
1. At CCK field setting page: add a viewsfield for teacher content type, set the views to the 'teachercourse' on dropdown list, and '%nid' as the value of argument by default.
2. At every individual teacher page: set the views to the 'teachercourse' on dropdown list, and '%nid' or just type '619' as the value of argument for example. But the results came out both the same message: nothing.
If my setting was wrong, please tell me.
ps, my CCK is 4.7.x-1.4 and the viewsfield is 4.7 dev version.
Thanks a lot.
TKY
Comment #4
darren ohThere is currently no maintainer for this version.