-
Task
-
Resolution: Done
-
Minor
-
None
-
4.0
-
MOODLE_400_STABLE
-
MDL-71681-master
-
5
-
Navigation push ahead
We want to introduce a system that standardizes all "call to action" elements to the top of the main page area. The main candidate for this are all of the course activities.
Based on initial discussions, this new system needs to do the following:
- Display items such as buttons, drop down menus, and select elements.
- Be able to position the elements either left, center, or right aligned.
- Allow third party developers the ability to add elements to this area.
To accomplish this we propose the following:
- Add a method(s) to the system (PAGE) renderer to display this area at the top of the region-main-box
- provide an interface with a basic method to retrieve the html to display in this area.
- Check the namespace {plugin}/actionarea/view for information to render.
- Basically allow any type of HTML to be inserted into the action area.
- Add an example module that has an implementation in mod/ {activity}/classes/actionarea/view.php
A thing to note is that the area is not tied to the context. It can change depending on what was clicked beforehand (see the prototype for the assignment, feedback etc).