|
Affects Version/s
|
|
1.7
[ 10120
]
|
|
Affects Version/s
|
2.0
[ 10122
]
|
|
|
Summary
|
Puestion type plug-in architecture for s
|
Question type plugins are not completely pluginable
|
|
Issue Type
|
New Feature
[ 2
]
|
Improvement
[ 4
]
|
|
Priority
|
Minor
[ 4
]
|
Major
[ 3
]
|
|
Description
|
Adding an optional question type should be a matter of simply dropping the files in the right location, in the same way as it works for add-on modules. Currently one still needs to edit lib.php and perform the database update by hand.
|
Adding an optional question type should be a matter of simply dropping the files in the right location. Currently it is not quite that simple. (Note that this bug was started in the Moodle 1.5 days, so some of the comments are no longer relevant.) Issues are:
1. New question type plugins cannot be included in the inport and export file formats without copying and pasting code.
2. It the question type wants any CSS, at the moment this needs to be copy pasted into the theme.
3. Any javascript the question wants has to be written into the HTML page. It would be better if each qtype was allowed a .js file that was automatically loaded by any page where the qtype was displayed or edited. (We should also ensure that YUI is always available to qtypes).
4. All question types are loaded on every quiz page, so we know which ones are available. With more types, this would become a performance issue. It would be better to register them in the database at install time, and then include ontly the ones that are necessary to display any page.
5. New question types cannot be made available to the multianswer question types without hacking it a lot.
|