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

Allow Blocks plugins to specify a fallback

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.9.0
    • 3.8.2
    • Blocks
    • 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.
    • MOODLE_38_STABLE
    • MOODLE_39_STABLE
    • Moodle App 3.9.0

      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.

            dpalou Dani Palou
            jleyva Juan Leyva
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Noel De Martin Noel De Martin
            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.