Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Initial stable release for the Drupal 11 version of Collapse Text, tagging branch 2.0.x, compatible with CKEditor 5.
Added basic automated testing on Gitlab CI with very basic text format Functional phpunit test.
Changes the way that collapse.js is added to the page. This should fix all the variety of odd errors about recursive walking, deprecated call-time pass-by-reference, and a number of odd WSODs.
Also changes the default text to remove mention of the arrow, as apparently it isn't clickable.
Changes the way that collapse.js is added to the page. This should fix all the variety of odd errors about recursive walking, deprecated call-time pass-by-reference, and a number of odd WSODs.
Also changes the default text to remove mention of the arrow, as apparently it isn't clickable.
Pull forward changes from the 6.x-2.x branch. This includes support for a [collapse options] tag, fixes for problems with entities, ability to control whether a form is put around the text, and the ability to control the default title.
Added settings for the default title and to disable the form. Also added the ability to specify on a case-by-case basis with the use of an options tag. Also added classes with names of "collapse-text" instead of "collapsed-text". The old ones will eventually go away, so change your themes...
This really should be a 6.x-3.0 release, based on the number of changes, but I only realized this much too late in the game.
Here are some of the changes:
Entirely rewritten engine; this is not based on a recursive regex, and should be better in terms of memory use.
New prepare step tries to regularize the collapse tags, so that the parsing is much simpler
style= renamed to class=. Support for style= remains, but please use class= going forward.
New format for tag. Although the module supports the previous system of specifying title= and style= without quotes around the values, it is preferable to put quotes around the values.
Support for [collapsed] as a shortcut for [collapse collapsed]
Although this is somewhat pointless, you can use < and > instead of [ and ] to indicate the tag if you wish. I say pointless because the angle brackets are transformed into straight brackets by the module during the prepare step.
Completely re-written and expanded help text
There are probably several other changes that I've forgotten, but they should all be minor.
Now supports nested collapse tags, theme override, and escaped collapse tags.
Teasers and/or malformed collapse sections should now show up correctly,
as left over collapse tags are stripped out after processing.
Now supports nested collapse tags, theme override, and escaped collapse tags.
Teasers and/or malformed collapse sections should now show up correctly,
as left over collapse tags are stripped out after processing.