Is there a way to do a mass import of quiz question?

Comments

westwesterson’s picture

no. there is not. there is no formal way to export questions either. You could however mark this for HEAD and make this a formal feature request.
You could also try the import export api, but this is unsupported by this module. Let me know if you get it to work.

js1’s picture

Version: 5.x-1.x-dev » 6.x-2.x-dev
Category: support » feature

Marking this as a feature request.

Ozeuss’s picture

dunno about export, but node_import might be the way to handle imports.
http://drupal.org/node/285236

mbutcher’s picture

Assigned: Unassigned » mbutcher
Status: Active » Postponed

An import hook will be added to 3.0.

salvatoreco’s picture

Any news for this feature? Thanks :-)

salvatoreco’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev

Sorry for double posting, I forgot to change Version :-)
BTW, I'd like to know if mass import could be done from csv or xml files.

mbutcher’s picture

Issue tags: +import, +CSV, +xml

I am currently working on a tool to import from XML into Quiz using QueryPath. I don't know that it will be a general-purpose tool, though. Is there a particular XML format you are interested in having supported?

salvatoreco’s picture

Well, not just a particular XML format, I've tried some csv import via node_import module, but it doesn't work properly. The XML I'd like to import is an XML export from a Ms Access Database Table.

salvatoreco’s picture

Maybe a easier work could be done by starting from supporting node_import module: http://drupal.org/node/285236

mbutcher’s picture

I believe that node_import support is on Sivaji's GSOC proposal. However, I need XML importing for a specific project, so I will be working on a very specific set of importers for that.

turadg’s picture

Title: mass import? » mass import

I'd like to use some of the code from Moodle's Question Bank module to add some importers to Quiz. I'm a veteran in PHP but new to Drupal. Does anyone want to work together on this?

sivaji_ganesh_jojodae’s picture

This may help you.
http://groups.drupal.org/node/21401

--
Thanks
Sivaji

salvatoreco’s picture

Great! I'll try this as soon as possible! Thanks sivaji! :-)

sivaji_ganesh_jojodae’s picture

Assigned: mbutcher » sivaji_ganesh_jojodae
Category: feature » support
Status: Postponed » Needs review
StatusFileSize
new3.77 KB

Mockup of quiz questions import module is here please test it and leave your reviews here.

EDIT :
Please change the line no 531 multichoice.module

db_query('INSERT INTO {quiz_node_relationship} (parent_nid, parent_vid, child_nid, child_vid, status) 

to

db_query('INSERT INTO {quiz_node_relationship} (parent_nid, parent_vid, child_nid, child_vid, question_status) 

Otherwise this module won't work.

mbutcher’s picture

If you are running out of CVS or with the latest dev release, you will not need to worry about the change to multichoice.module. it is already made.

mbutcher’s picture

Issue tags: +gsoc

Sivijai: You are approved for adding this new module into quiz. You are a committer now. Welcome to GSOC and the *official* Quiz team. When you add the module, please mark this as 'fixed'.

Note that I have added the tag 'gsoc' to this issue. Please tag any GSOC-specific issues using this tag so that we can track sivaji's progress.

sivaji_ganesh_jojodae’s picture

Status: Needs review » Fixed

w00t !! thanks mbutcher, module has been committed to repository, i am marking this as fixed.

sivaji_ganesh_jojodae’s picture

Issue tags: +gsoc2009

just to let you know that questions_import an add-on for quiz module now supports Moodle Aiken format question import feature.

Status: Fixed » Closed (fixed)

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

sivaji_ganesh_jojodae’s picture

Status: Closed (fixed) » Fixed
Issue tags: +questions_import

Status: Fixed » Closed (fixed)
Issue tags: -import, -CSV, -xml, -gsoc, -gsoc2009, -questions_import

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