Issue Details (XML | Word | Printable)

Key: MDL-18425
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Tim Hunt
Reporter: Tim Hunt
Votes: 0
Watchers: 0
Operations

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

Allow admins to set the sort order for question types

Created: 03/Mar/09 03:23 PM   Updated: 03/Mar/09 04:47 PM
Return to search
Component/s: Questions
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Tim Hunt
Security Level: None
Resolved date: 03/Mar/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
The need for this is that we want to 'Add new question' list of question types to be in a nice order, with similar question types together. However, with arbitrary numbers of plugins, we can't always determine the best sort order automatically, so actually it needs to be stored in the database. And if it is in the database, it may as well be editable in some way.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Tim Hunt made changes - 03/Mar/09 04:47 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
tjhunt committed 6 files to 'Moodle CVS' - 03/Mar/09 04:47 PM
qtype admin: MDL-18425 also related to MDL-18355.

Allow question types to be displayed in order that is better than random or alphabetical. Since we don't know all the qtypes there may be:
1. Store the order in the DB (config plugins).
2. Set up a good default order for the standard types. (Unknown types go at the end by default.)
3. Allow admins to edit the order on the qtype admin screen.
MODIFY admin/qtypes.php   Rev. 1.9    (+56 -18 lines)
MODIFY version.php   Rev. 1.1019    (+1 -1 lines)
MODIFY lib/questionlib.php   Rev. 1.188    (+88 -5 lines)
MODIFY theme/standard/styles_layout.css   Rev. 1.679    (+10 -0 lines)
MODIFY lib/simpletest/testquestionlib.php   Rev. 1.5    (+27 -7 lines)
MODIFY lib/db/upgrade.php   Rev. 1.275    (+20 -1 lines)