Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38856 META: Issues around Bootstrapbase and Clean theme
  3. MDL-40067

Bootstrap Clean Theme loses blocks when $THEME->layout side-pre and side-post are swapped

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      NOTE - you cannot test this bug until MDL-40065 is fixed, as you get an exception error

      In theme Standard, if the user edits the $THEME->layout and changes from 'side-pre','side-post' to 'side-pre' OR 'side-post', the navigation, administration, and calendar blocks move to whichever side is visible.

      In theme Clean (Bootstrap), this doesn't appear to be the case. The blocks can disappear.

      How to test:

      Turn on Debug to Developer and Theme Design Mode on

      Copy the entire section of $THEME->layouts from bootstrapbase/config.php and paste into config.php of clean/config.php

      Select Site Admininstration / Appearance / Theme / Theme Selector and select Clean theme. Go to the front page (ALL should be OK. By default, theme Clean has only 'side-pre'

      Select "Turn Editing On", then select each block and change the settings to default of right side and also right side for this page. When I refreshed the page, the blocks were still there, but...

      In config.php of theme standard, and theme clean (please alter both!), change the front page layout to:

      // The site home page.
      'frontpage' => array(
      'file' => 'general_frontpage.php',
      'regions' => array('side-post'),
      'defaultregion' => 'side-post',
      'options' => array('nonavbar'=>true),

      Purge caches after saving the two config.php files

      Go back to the front page, and side-post area appears and the blocks are there.

      Select Site Admininstration / Appearance / Theme / Theme Selector and select Clean theme. Go to the front page (ALL should be OK)

      Select Site Admininstration / Appearance / Theme / Theme Selector and select Standard theme. Go to the home page (ALL should be OK)

      Re edit the two config.php $THEME->layout to:

      // The site home page.
      'frontpage' => array(
      'file' => 'general_frontpage.php',
      'regions' => array('side-pre'),
      'defaultregion' => 'side-pre',
      'options' => array('nonavbar'=>true),

      Purge caches again

      Go to front page - all is still OK

      Select Site Admininstration / Appearance / Theme / Theme Selector and select Clean theme. Go to the front page

      Note that the block area is there, but none of the blocks have been moved to side-pre.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brianlmerritt Brian Merritt
                Participants:
                Component watchers:
                Bas Brands, Amaia Anabitarte, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: