Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2906

Create course menu delegate so addons can add menu items

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.7.0
    • Component/s: Courses
    • Labels:
    • Testing Instructions:
      Hide

      It is not possible to test this feature alone because this is just an API and nothing uses it yet. However you can check the course menu isn't broken:

      1. Go to a course page (wait for it to load)
      2. Open the menu
      EXPECTED: You should see various menu options such as 'Show download options', 'Course summary', etc.

      If MOBILE-2905 is also installed then you can actually test this feature:

      3. Open the cousre menu
      EXPECTED: You should see 'Manage storage' option
      4. Press the 'Manage storage' option
      EXPECTED: The 'Manage storage' page should load

      Show
      It is not possible to test this feature alone because this is just an API and nothing uses it yet. However you can check the course menu isn't broken: 1. Go to a course page (wait for it to load) 2. Open the menu EXPECTED: You should see various menu options such as 'Show download options', 'Course summary', etc. If MOBILE-2905 is also installed then you can actually test this feature: 3. Open the cousre menu EXPECTED: You should see 'Manage storage' option 4. Press the 'Manage storage' option EXPECTED: The 'Manage storage' page should load
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.7.0

      Description

      At present, addons can add 'tabs' to a course (e.g. Participants, Grades). However there are some less important/more admin-y things that are better added to the course menu instead of having a whole tab for it. (Also the tabs are kind of hard to navigate to if we add too many.)

      I propose making it possible for addons to add items to the course menu which currently contains options 'Download course', etc. In particular I want to use this for the new 'Manage storage' page, MDL-2905.

      This change has been implemented using the main menu delegates as a basis, but I stripped out some parts that don't apply to the course menu. Those could obviously be added back in if required later...

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  7/Jun/19