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

Support site plugins for blocks on dashboard page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.6.1
    • Fix Version/s: 3.7.0
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      Hide
      1. Unzip the attached block_stupid.zip, and move the 'stupid' folder into the 'blocks' folder of your Moodle installation.
      2. Go to the admin page on your Moodle installation to install the stupid block.
      3. In site administration go to Appearance / Default dashboard settings.
      4. Click 'Blocks editing on' and add an instance of the 'Proportion of site which is stupid' block to the middle of the page. (Note: I don't think the mobile app actually follows the ordering of blocks, so it probably doesn't actually matter where you put it.)
      5. Click "Reset Dashboard for all users".
      6. In the mobile app, connect to your site. (If you already accessed it, you will need to kill the app and reload it so that it updates the site settings.)
      7. Go to the Dashboard tab.
        • EXPECTED: When the dashboard page appears in the app, it should include the stupid block, which contains a pie chart showing a random percentage of stupid and not stupid.
      8. Pull down the page to refresh.
        • EXPECTED: The pie chart should reload with different random values.
      Show
      Unzip the attached block_stupid.zip, and move the 'stupid' folder into the 'blocks' folder of your Moodle installation. Go to the admin page on your Moodle installation to install the stupid block. In site administration go to Appearance / Default dashboard settings. Click 'Blocks editing on' and add an instance of the 'Proportion of site which is stupid' block to the middle of the page. (Note: I don't think the mobile app actually follows the ordering of blocks, so it probably doesn't actually matter where you put it.) Click "Reset Dashboard for all users". In the mobile app, connect to your site. (If you already accessed it, you will need to kill the app and reload it so that it updates the site settings.) Go to the Dashboard tab. EXPECTED: When the dashboard page appears in the app, it should include the stupid block, which contains a pie chart showing a random percentage of stupid and not stupid. Pull down the page to refresh. EXPECTED: The pie chart should reload with different random values.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.7.0

      Description

      The app currently supports blocks on the dashboard page (the one that normally has a course list when you start the app). Some specific core blocks are supported.

      We would like it to be possible to add support for extra blocks on this page as plugins from Moodle, without altering the app code. This will allow sites to add custom content that appears below the list of courses.

      I have attached a sample block called block_stupid. This feature will require developer documentation on the wiki - if it's approved, I plan to write the wiki page based on this example.

        Attachments

          Activity

            People

            • Assignee:
              quen Sam Marshall
              Reporter:
              quen Sam Marshall
              Peer reviewer:
              Dani Palou
              Integrator:
              Juan Leyva
              Tester:
              Dani Palou
              Participants:
              Component watchers:
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

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