Note: You are currently viewing documentation for Moodle 3.7. Up-to-date documentation for the latest stable version of Moodle may be available here: Categories editing interface improvment.

Development:Categories editing interface improvment: Difference between revisions

From MoodleDocs
No edit summary
m (Add wiki markup)
 
Line 2: Line 2:




Draft:
===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:
1) mark method process_actions($left, $right, $moveup, $movedown) as obsolete;
# mark method process_actions($left, $right, $moveup, $movedown) as obsolete;
2) 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;
# create new method process_action($action, $value) which will handle all moodle_list actions. $action can be:  
3) make the same changes in question_category_list class (child of moodle_list);
#*move at the first place in context,  
4) create property "moving" which will signals that list elements can be moved.
#*move at the place after any category,  
Here how it will look:
#*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]]

Latest 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:

  1. mark method process_actions($left, $right, $moveup, $movedown) as obsolete;
  2. 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;
  3. make the same changes in question_category_list class (child of moodle_list);
  4. create property "moving" which will signals that list elements can be moved.


It will be displayed like:

Before moove categories editing.jpg

After pushing button "move" Moving categories editing.jpg