Filters: Collapsible regions

filter_collapsible
Maintained by Picture of Jan EberhardtJan Eberhardt
Easy way to create collapsible regions within descriptions and text for Moodle.
198 sites
38 downloads
20 fans
Current versions available: 1

Easy way to create collapsible regions within descriptions and text for Moodle.


Usage

To start or end a collapsible region use the keyword '{collapsible}'. If the starting tag is followed by squared brackets the text within these brackets is shown instead of a general "Click-to-expand"-message.


Example

For instance


{collapsible}[read more...]

Your text/HTML here.

{collapsible}


will result in following structure:


Please see the screenshots for a more visual example.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Picture of Jan Eberhardt
Jan Eberhardt (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Picture of Jan Eberhardt
    Mon, Dec 5, 2016, 9:29 PM
    That was a bug for which Zhengliang Wu and Rex Lorenzo submitted a bugfix via Github. I updated the Git repository recently but didn't do it for the downloads.
  • Picture of Jan Eberhardt
    Mon, Dec 5, 2016, 9:48 PM
    New version 1.02 should fix this issue.
  • Ricardo Caiado
    Wed, Dec 7, 2016, 8:37 PM
    Any upgrade to Moodle 3.2?
  • Picture of Jan Eberhardt
    Wed, Dec 7, 2016, 10:20 PM
    I had no possibility to test the plugin on 3.0+ systems. Therefore I can't assure, if it's going to work. You may try version 1.02 on your Moodle and report issues (I recommend Github for reporting them) I can work on it.
  • Picture of Stefan Meier
    Thu, Dec 8, 2016, 12:02 AM
    Now it works on both my 3.0 and 3.1 servers
    Jan, You rock!
  • Picture of Bert van der Hooft
    Sat, Apr 8, 2017, 7:45 PM
    It breaks when using more than one collapsible on a onetopic page.
  • Picture of Jan Eberhardt
    Mon, Apr 10, 2017, 4:39 AM
    Could you please specify which Moodle version you are using and how it "breaks"? Please notice, that you cannot nest collapsible regions.
  • Picture of Jan Eberhardt
    Mon, Apr 10, 2017, 4:39 AM
    Also there is an issue page at the Github repository for reporting bugs.
  • Émerger ou submerger ? Telle est la question !
    Sun, May 14, 2017, 3:43 PM
    Exactly what I need ! big grin
    Will it work on 3.2 ?
  • Picture of Jan Eberhardt
    Tue, May 16, 2017, 4:40 PM
    Idk... but since it works on 3.1 feel free to try out. The HTML/JS is made by Moodle core function, which means that it should work even if there have been major upgrades to themes.
  • Picture of Bert van der Hooft
    Wed, Dec 27, 2017, 9:37 PM
    It breaks editing (settings of activities) and rol down menu in dashboard in Moodle 3.4.
    Any expectation on moodle 3.4 version?
  • Picture of Alexandre Bento Martins
    Thu, Feb 8, 2018, 2:17 AM
    Any upgrade to MOODLE 3.4?
  • Picture of Joseph Liaw
    Wed, Jan 2, 2019, 5:07 AM
    Hi Jan:

    Fantastic filter! Makes it easy for teachers to give a lot of instructions and directions in a "clean" way being able to create a collapsible region...

    Wanted to report I got your FANTASTIC filter working up to Moodle 3.3, but it breaks on Moodle 3.4....the filter doesn't collapse the region (the "Read More" button shows up), and then you can not edit the page without turning off the filter...

    THANK YOU for sharing your work with the Moodle community, and hopefully there is a way to make it work with the newer versions of Moodle using Bootstrap4 for themes!!!
  • Picture of InsightKorea JobS
    Mon, Feb 4, 2019, 9:12 AM
    Good plugin. I want to use this at 3.5+
  • Picture of Victor Santos
    Tue, Jun 18, 2019, 12:05 AM
    Hi,
    Did anyone managed to make it work on 3.6?
Please login to post comments