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

Allow Blocks plugins to specify a fallback

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.2
    • Fix Version/s: 3.9.0
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

       

      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.
      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. Check that the course overview block is displayed instead of the stupid block.
      Show
      This issue only needs to be tested in 1 device.   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. 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. Check that the course overview block is displayed instead of the stupid block.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle App 3.9.0

      Description

      In some sites, there are some custom blocks that are copies of existing blocks with a few minor changes.

      Supporting those custom blocks on mobile could be a lot of work for the developers, so in some scenarios they'd prefer just to specify a fallback to use.

      For example, the block_course_ovewview_lite could use as fallback the core block_myoverview block for the mobile app

      For doing that, they'd just need to create the db/mobile.php file and indicate there the fallback they want to use.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Noel De Martin
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              26/Jun/20