Opaque question type: Difference between revisions

From MoodleDocs
(Added Infobox plugin)
m (clean up, typos fixed: github → GitHub (2))
 
Line 7: Line 7:
|float = right
|float = right
}}{{Questions}}
}}{{Questions}}
Recent versions of the Opaque question type is compatible with Moodle 2.1 and later.
Recent versions of the '''Opaque question type''' are compatible with Moodle 2.1 and later.


The Opaque question type can be used to connect to [https://github.com/sangwinc/stack/wiki STACK] and [http://openmark.java.net/ OpenMark] question engines.
The Opaque question type can be used to connect to [https://github.com/sangwinc/stack/wiki STACK] and [http://openmark.java.net/ OpenMark] question engines.
Line 15: Line 15:
The Opaque question type comes in two parts: a question type, that needs to be installed into the question/type/opaque folder, and a question behaviour that needs to be installed into the question/behaviour/opaque folder.
The Opaque question type comes in two parts: a question type, that needs to be installed into the question/type/opaque folder, and a question behaviour that needs to be installed into the question/behaviour/opaque folder.


The two projects on github:
The two projects on GitHub:
* https://github.com/timhunt/moodle-qtype_opaque
* https://github.com/timhunt/moodle-qtype_opaque
* https://github.com/timhunt/moodle-qbehaviour_opaque
* https://github.com/timhunt/moodle-qbehaviour_opaque
Line 37: Line 37:


* [http://moodle.org/mod/forum/view.php?id=737 Quiz forum for discussions]
* [http://moodle.org/mod/forum/view.php?id=737 Quiz forum for discussions]
* [[:dev:Open_protocol_for_accessing_question_engines|Description of the Opaque protocol]]
* [[:dev:Open protocol for accessing question engines|Description of the Opaque protocol]]
* https://github.com/timhunt/moodle-qtype_opaque and https://github.com/timhunt/moodle-qbehaviour_opaque the code on github.
* https://github.com/timhunt/moodle-qtype_opaque and https://github.com/timhunt/moodle-qbehaviour_opaque the code on GitHub.


[[Category:Contributed code]]
[[Category:Contributed code]]

Latest revision as of 16:22, 9 December 2021


Recent versions of the Opaque question type are compatible with Moodle 2.1 and later.

The Opaque question type can be used to connect to STACK and OpenMark question engines.

Installing the Opaque question type

The Opaque question type comes in two parts: a question type, that needs to be installed into the question/type/opaque folder, and a question behaviour that needs to be installed into the question/behaviour/opaque folder.

The two projects on GitHub:

explain how to get the code using either git clone or by downloading a zip file.

After getting the code, you need to visit the admin notification page of your Moodle to let the plugins install themselves.

Configuring the question type

After installing the plugins, go to Site administration / Plugins / Question types / Opaque and add an engine. This requires knowing the URL of the question engine you want to connect to.

Creating an Opaque question

This works just like any other question type - select 'Opaque' from the Create new question dropdown on the question bank screen.

The Opaque editing form has very few fields, since the question is mostly defined by the remote engine, we just have to say which engine to connect to, and the question id and version.

Then you can add you new question to a quiz, and try it out. Or you could just preview it.

See also