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

Add support for "collapsing" (hiding/showing) blocks in theme "boost"



    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:


      The Boost theme removed the two upper-right icons in blocks that provided the ability to "collapse" and "dock" side blocks. In MDL-56018, a request to add "docking" was alleviated because of "something new," probably the newer side bar. I can understand this.

      However, I believe that there is still a need to be able to collapse the blocks, meaning that the little "minus" icon should be retained. I believe this because some blocks can get pretty long, and some blocks might not be useful to students, so I desire that students should be able to collapse these blocks.

      For example, I use the RSS feed blocks to provide easy access to my lecture videos (using podcast technology.) At the end of my semester, this list grows pretty long (see attached graphic.) Additionally, I like to also use a redundant RSS feed block for open-captioned versions of my videos, again long. I like to tell students that they can collapse the block that is of no interest to them.

      As another example, I provide both the Calendar block and the Upcoming Events block. I like the ability for students to collapse either of these if they happen to prefer one over the other.

      So I request that the "minus" icon be retained on blocks in the Boost theme. I think that this becomes even more important with Boost since we now have only one side column for blocks. (Incidentally, I really am eager to switch from MORE to Boost, but this inability to collapse blocks might be a show-stopper.)


        1. block.mustache
          2 kB
          Daniel Miericke
        2. Blocks01.jpg
          168 kB
          Rick Jerz
        3. collapseblocks.js
          2 kB
          Daniel Miericke
        4. collapseblocks.min.js
          0.5 kB
          Daniel Miericke
        5. core_renderer.php
          3 kB
          Daniel Miericke
        6. core_renderer-1.php
          3 kB
          Rick Jerz
        7. course_renderer.php
          4 kB
          Rick Jerz
        8. RSS Feed Block.jpg
          137 kB
          Rick Jerz
        9. To Collapse - block.mustache Changes.jpg
          345 kB
          Rick Jerz
        10. To Collapse Right-side Blocks.txt
          5 kB
          Rick Jerz
        11. To Collapse Right-side Blocks-Working in Moodle 3.7.txt
          5 kB
          Rick Jerz



            Unassigned Unassigned
            rjerz Rick Jerz
            Component watchers:
            Bas Brands, Mathew May
            44 Vote for this issue
            32 Start watching this issue