Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-71681

Add page action section.

XMLWordPrintable

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

      1. Display items such as buttons, drop down menus, and select elements.
      2. Be able to position the elements either left, center, or right aligned.
      3. Allow third party developers the ability to add elements to this area.

      To accomplish this we propose the following:

      1. Add a method(s) to the system (PAGE) renderer to display this area at the top of the region-main-box
      2. provide an interface with a basic method to retrieve the html to display in this area.
      3. Check the namespace {plugin}/actionarea/view for information to render.
      1. Basically allow any type of HTML to be inserted into the action area.
      2. 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).

      The prototype location

        1. assign_new.patch
          4 kB
        2. assign_test.patch
          3 kB
        3. assignment_view.png
          assignment_view.png
          106 kB

            sujith Sujith Haridasan
            peterdias Peter Dias
            Peter Dias Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 1 day, 4 hours, 40 minutes
                1w 1d 4h 40m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.