Closed (fixed)
Project:
Quiz
Version:
6.x-4.x-dev
Component:
Code - Views
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
29 Jul 2009 at 02:09 UTC
Updated:
6 Jan 2010 at 09:12 UTC
I've been trying to implement something akin to the questions_by_quiz view, but for question collections. The 'qcollection' type uses `quiz_node_relationship` table like the 'quiz' type does, but it doesn't use `quiz_node_properties`. The views_data() hook is returning a description for `quiz_node_relationship` that binds it to `quiz_node_properties` and I haven't gotten anywhere trying to work around it.
Can someone with more (i.e. any) experience programming Views support get it going?
Comments
Comment #1
mbutcher commentedMight try to get sdboyer to weigh in on this. He wrote our views support. Often he is in #drupal-quiz on IRC.
Comment #2
turadg commentedComment #3
sdboyer commentedFinally found some time to look at this today, but couldn't find you!
It's difficult to know with just the description in the issue (and going through the code to figure it out seemed impractical), but I suspect that what's going to need to happen is an implementation of hook_views_data_alter() wherein you add some specific 'virtual' fields to the quiz_node_relationships table that have different join chains. But we'll really need to talk it out more to figure it out definitively.
Comment #4
turadg commentedThanks for working on this and sorry for the cryptic issue text.
I want to be able to make a view that, given a qcollection node, shows all the questions in it. I tried doing this but was stumped by the existing view which assumes that quiz_node_relationships only relates quiz nodes (which have entries in quiz_node_properties) to questions.
Comment #5
falcon commentedComment #6
falcon commentedqcollection has been removed...