As this is an input filter, it will only work where input filters are applied.

This input filter must come after the HTML filter, and should go after the convert line breaks filter.

To make a section of text collapsible, surround it with [collapse] and [/collapse]. You may nest the [collapse] tags to have collapsible sections within collapsible sections.

To make the text collapsed initially, start with [collapse collapsed]. As a shortcut, you may use [collapsed], as this will be expanded into [collapse collapsed].

You may supply a title to be displayed in two ways. There is a title= option for the [collapse] tag, or the module will find the first header tag and use that instead. New in 6.x-2.5, you can control the default title used if one isn't specified.

Also supported is a class= option, which allows you to add CSS classes.

Older versions had a slightly different specification, which is still supported.

Read the filter tips for more information.

Downloads

Recommended releases

Version Downloads Date Links
7.x-2.3 tar.gz (16.8 KB) | zip (18.21 KB) 2011-Apr-02 Notes
6.x-2.7 tar.gz (15.83 KB) | zip (16.89 KB) 2011-Mar-30 Notes

Development releases

Version Downloads Date Links
7.x-2.x-dev tar.gz (17.13 KB) | zip (18.48 KB) 2011-May-21 Notes
6.x-2.x-dev tar.gz (15.83 KB) | zip (16.89 KB) 2011-Apr-03 Notes

Project Information


Maintainers for Collapse Text

  • pukku - 59 commits
    last: 38 weeks ago, first: 4 years ago
  • pooneil - 9 commits
    last: 1 year ago, first: 1 year ago

Issues for Collapse Text

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 14 Mar 11
nobody click here