how to display all the questions that has been chosen for one quiz node using view2? for example we have node/3 as a quiz and multiple choice type questions such as node/2, node/4,node/5 etc that has been added in manage question for quiz node page.

so can we create a views with content type quiz and display all the questions that related to specific quiz so we can filter it base on quiz node tile in views

thanks

Comments

imunk created an issue. See original summary.

djdevin’s picture

Category: Task » Support request
Status: Active » Fixed

Hi,

You can pull them in Views by creating a table based on "Quiz question relationship"

The quiz relationship table holds the relationship between quizzes and their questions.

Add a contextual filter for the "Quiz question relationship: Parent_nid" to pull from the URL so you can filter by quiz.

Set the path of the view to "quiz-questions/%"

If you go to quiz-questions/5 then that should pull the questions associated with Quiz node 5.

Note that this will only allow you to see questions, you can't take questions in this way.

If your view is based off of the node, you can create a relationship from the Node to Quiz question relationship: Parent vid.

Depending on your revision setting you might also have to specify a revision filter so that you only see the latest revisions of the quiz questions list.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.