Categories editing interface improvment: Difference between revisions
From MoodleDocs
No edit summary |
Oleg Sychev (talk | contribs) m (Add wiki markup) |
||
Line 2: | Line 2: | ||
===Implementation=== | |||
Here are the probable changes to remove this issue: | Here are the probable changes to remove this issue: | ||
Changes in moodle_list class from listlib.php: | Changes in moodle_list class from listlib.php: | ||
# mark method process_actions($left, $right, $moveup, $movedown) as obsolete; | |||
# create new method process_action($action, $value) which will handle all moodle_list actions. $action can be: | |||
#*move at the first place in context, | |||
#*move at the place after any category, | |||
#*move into category as first sub-categoty; | |||
# make the same changes in question_category_list class (child of moodle_list); | |||
# create property "moving" which will signals that list elements can be moved. | |||
It will be displayed like: | |||
[[Image:Before_moove_categories_editing.jpg]] | [[Image:Before_moove_categories_editing.jpg]] |
Revision as of 19:27, 21 November 2009
Moodle have quite good interface for editing of long lists in topic/weekly course format. However, category editing interface sadly missing this. In particular, moving categories around is very awkward. So the idea is to implement in category list editing interface similar to that of topic/weekly course format.
Implementation
Here are the probable changes to remove this issue: Changes in moodle_list class from listlib.php:
- mark method process_actions($left, $right, $moveup, $movedown) as obsolete;
- create new method process_action($action, $value) which will handle all moodle_list actions. $action can be:
- move at the first place in context,
- move at the place after any category,
- move into category as first sub-categoty;
- make the same changes in question_category_list class (child of moodle_list);
- create property "moving" which will signals that list elements can be moved.
It will be displayed like: