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

Let themes define un-addable blocks

XMLWordPrintable

    • Moppies Kanban

      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.

       

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Jake Dallimore Jake Dallimore
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.