Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-73347

Let themes define un-addable blocks

    XMLWordPrintable

Details

    • Moppies Kanban

    Description

      After the UX improvements in Moodle 4.0, some of the blocks make no sense in boost (for instance, Navigation). However, they are still required when using classic.

      A new theme setting should be added to let themes mark blocks as “un-addable” (to avoid them being displayed in the "Add a block" list). That will allow boost to define the following blocks in the default value (that admins will be able to change):

      • Navigation (navigation). Navigation in Moodle 4.0 has been improved in boost so this block shouldn't be required anymore.
      • Administration (settings). Same reason as Navigation.
      • Courses (course_list). The "My courses" new page have been created, which replaces most of the content displayed on this block. 
      • Section links (section_links). The course index should help to quickly identify and access sections in a course.

      This issue is about:

      • Creating the method get_unaddable_by_theme_block_types() method (or similar).
      • Calling this method from get_addable_blocks() in lib/blocklib.php
      • Adding the theme setting, to let themes define their un-addable blocks.
      • Adding the previous blocks to the boost theme.

       

      Attachments

        Issue Links

          Activity

            People

              sarjona Sara Arjona (@sarjona)
              sarjona Sara Arjona (@sarjona)
              Amaia Anabitarte Amaia Anabitarte
              Jake Dallimore Jake Dallimore
              CiBoT CiBoT
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Huong Nguyen, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 21 minutes
                  5h 21m