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

Allow admins to add new external links to pages in the main menu of the Mobile app

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Go to Site administration ►Mobile app ►Mobile features
      3. Add some custom menu items, like:

        My grades | https://someurl.xyz/local/mygrades/index.php | embedded
        App's help | https://someurl.xyz/help | inappbrowser | en
        Visit our SIS | https://someurl.xyz | browser | en

      4. Create a WS Token for one standard user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool"

      6. Check that you receive correctly the new custommenuitems
      7. Go to the mobile settings again, and remove all the custommenuitems
      8. Execute again the curl request and check that now you get an empty value for the custommenuitems
      Show
      Enable "Mobile services": Plugins ► Web Services ► Mobile Go to Site administration ►Mobile app ►Mobile features Add some custom menu items, like: My grades | https://someurl.xyz/local/mygrades/index.php | embedded App's help | https://someurl.xyz/help | inappbrowser | en Visit our SIS | https://someurl.xyz | browser | en Create a WS Token for one standard user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool" Check that you receive correctly the new custommenuitems Go to the mobile settings again, and remove all the custommenuitems Execute again the curl request and check that now you get an empty value for the custommenuitems
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57410-master

      Description

      We should allow admins to add links to be displayed in the side menu of the app, links will be something like:

      The link name, then the link, where to open the link (in the app embedded browser, or the device browser) and the language (optional):

      Link name | https://someurl.xyz | [inappbrowser|browser|embedded] | en

      We can place this setting in Mobile app > Mobile features

      This will allow sites to add links to specific information for the user like a different grade book, or a link to the recent new in an SIS, etc..

      Another use case will be to add a link to a help page (specific for the institution) or even launch an intent to open other apps

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jleyva Juan Leyva
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Andrew Nicols
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/17