Dear ,

I want to create a many 2 many relationship between 2 content types: course and teacher
Course contains of: title, intro, body, date, teachers
Teacher contains of: name, intro, etc

1 teacher can give 1 or more courses
1 Course can be given by 1 or more teachers

On the course page i want to see the course info and all the teacher info
On the teacher page i want to see all the teacher info and a list containing the courses.

What steps can i take to achieve this?

Thnx in advance for the help.

Comments

akosipax’s picture

You can solve that using views. I recommend looking into the VIews module.

vishantpoeran’s picture

Thnx for the reply. For a many 2 many relation should i make 3 content types than?
teacher, course and teacher_course?

akosipax’s picture

I don't think you need another content type as long as you have the teacher referenced in your course content type. (that is, you're using a node reference field, not just a textfield)

vishantpoeran’s picture

When i use a teacher as node reference in the course content type, i get the list of one or more teachers, but i only get the names. I want the intro and other info also.

akosipax’s picture

Like I said, I think you can do that using views. Have you looked into the views module? I recommend you reading/studying/learning about Views. :o) It's a very powerful module that may easily give what you're looking for.

vishantpoeran’s picture

I'm was already busy with the views module. I know the basics, but i cant seem to find the advanced items. Do you have any suggested site / info?
thnx in advance.

mechmsk’s picture

Hi,

I've got the similiar question described here
If you have the solution already, could you write it here, please?