Issue Details (XML | Word | Printable)

Key: MDL-2727
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Tim Hunt
Reporter: Gustav W Delius
Votes: 11
Watchers: 4
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Question type plugins are not completely pluginable

Created: 12/Mar/05 05:40 AM   Updated: 09/Sep/08 04:20 PM
Return to search
Component/s: Questions
Affects Version/s: 1.9
Fix Version/s: None

Environment: All
Issue Links:
Dependency
 

Participants: Gustav W Delius, Martin Dougiamas, Pierre Pichet and Tim Hunt
Security Level: None
Affected Branches: MOODLE_19_STABLE

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
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. See the subtasks for specifics.

(Note that this bug was started in the Moodle 1.5 days, so some of the comments are no longer relevant.)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Michael Blake made changes - 21/Aug/06 05:05 PM
Field Original Value New Value
Reporter anonymous [ anonymous ]
Tim Hunt made changes - 23/Aug/06 07:40 PM
Status In Progress [ 3 ] Open [ 1 ]
Tim Hunt made changes - 26/Aug/06 02:35 PM
Summary proper plug-in architecture for question types Puestion type plug-in architecture for s
Tim Hunt made changes - 26/Aug/06 02:47 PM
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.
Tim Hunt made changes - 26/Aug/06 03:00 PM
Description 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.
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. See the subtasks for specifics.

(Note that this bug was started in the Moodle 1.5 days, so some of the comments are no longer relevant.)
Tim Hunt made changes - 23/Jun/07 05:49 PM
Link This issue will be resolved by MDL-10198 [ MDL-10198 ]
Tim Hunt made changes - 02/Nov/07 04:05 AM
Link This issue has been marked as being related by MDL-5106 [ MDL-5106 ]
Tim Hunt made changes - 02/Nov/07 04:05 AM
Link This issue has been marked as being related by MDL-5106 [ MDL-5106 ]
Tim Hunt made changes - 03/Nov/07 12:38 AM
Component/s Quiz [ 10059 ]
Affects Version/s 1.7 [ 10120 ]
Issue Type Improvement [ 4 ] Bug [ 1 ]
Affects Version/s 1.9 [ 10190 ]
Component/s Questions [ 10087 ]
Tim Hunt made changes - 09/Sep/08 04:20 PM
Link This issue will be resolved by MDL-6751 [ MDL-6751 ]