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

Pass plugin "args" to the Javascript of the plugin

XMLWordPrintable

    • Hide

      This issue only needs to be tested in 1 device.

      1. Install the "Test Args" plugin attached to this issue.
      2. Add the "Test Args" block to a course.
      3. In the app, open the course and open the side blocks modal.
      4. Check that the block displays something like: The block ID is 126 and the name is testargs.
      Show
      This issue only needs to be tested in 1 device. Install the "Test Args" plugin attached to this issue. Add the "Test Args" block to a course. In the app, open the course and open the side blocks modal. Check that the block displays something like: The block ID is 126 and the name is testargs .
    • MOODLE_403_STABLE
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1.4, Moodle Apps - 2024 i2

      When viewing some plugins like an activity or a block, we send some parameters (we call them "args") to the WebService to obtain the template. These args can include data like the blockid, courseid, cmid, etc. 

      However, I noticed that the Javascript of plugins doesn't have access to this data, so if a plugin wants to use the blockid from the JS code then the plugin needs to send this value from PHP to the JS. IMO it would be better if the app automatically supplied these values to the JS code, it will make it easier for plugins to use these values.

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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