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

Support content links in mobile.php of site plugins

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.0
    • Fix Version/s: None
    • Component/s: Site add-ons
    • Labels:
    • Affected Branches:
      MOODLE_35_STABLE

      Description

      We could support a new field in each handler of mobile.php to configure content links. By default, when the link is clicked it would open a new page with the contents, but we could add some flags to allow opening the page in the "root" of the app or to navigate to a module entry page.

      So it would be something like:

      links => array(
          array(
              pattern <- A RegExp to check if a URL should be treated.
              method <- The method to use in the opened page.
              urlparams <- List of params to get from the URL, like: array('id', 'hash')
              fixedparams <- List of fixed params, like: array(myparam => 'value'). I don't know if this makes sense.
              priority <- Optional
              checkallusers <- Optional
          )
      )

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            dpalou Dani Palou
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: