You are here

README.txt in Collapse Text 6

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.2 README.txt
  3. 7.2 README.txt
collapse_text.module is an input filter to allow text to be
made into collapsible sections (like on editing forms).

Surround text with `[collapse]` and `[/collapse]` to make that
text be a collapsible section. You may open with `[collapse collapsed]`
instead to make it default closed.

The "legend" for the created fieldset may be set by putting a
title into the [collapse] tag as [collapse title=my title]. If you
wish to combine the options, you should do [collapse collapsed title=...].
If no title is specified, the title will be taken from the first
HTML header tag (<h1>, <h2>, <h3>, ...) found. It will then suppress
the first header tag that it found to avoid it showing up twice.
If there is no such tag found, the title will default to an
explanatory text title.

You may also put a "style" attribute into the collapse tag (it should
come before the "title" attribute, however.  This style is inserted as
a class into the fieldset, allowing sites to have different fieldsets
with different semantic meanings.

You may also override theme_collapse_text_fieldset() if you want to do
custom theming.

N.B. The HTML corrector filter is known to cause collapsible text to
not function properly.  If you use HTML corrector, make sure that you
arrange your filters such that collapse text is below (heavier than)
HTML corrector.  You can find this setting in admin/settings/filters.

File

README.txt
View source
  1. collapse_text.module is an input filter to allow text to be
  2. made into collapsible sections (like on editing forms).
  3. Surround text with `[collapse]` and `[/collapse]` to make that
  4. text be a collapsible section. You may open with `[collapse collapsed]`
  5. instead to make it default closed.
  6. The "legend" for the created fieldset may be set by putting a
  7. title into the [collapse] tag as [collapse title=my title]. If you
  8. wish to combine the options, you should do [collapse collapsed title=...].
  9. If no title is specified, the title will be taken from the first
  10. HTML header tag (

    ,

    ,

    , ...) found. It will then suppress

  11. the first header tag that it found to avoid it showing up twice.
  12. If there is no such tag found, the title will default to an
  13. explanatory text title.
  14. You may also put a "style" attribute into the collapse tag (it should
  15. come before the "title" attribute, however. This style is inserted as
  16. a class into the fieldset, allowing sites to have different fieldsets
  17. with different semantic meanings.
  18. You may also override theme_collapse_text_fieldset() if you want to do
  19. custom theming.
  20. N.B. The HTML corrector filter is known to cause collapsible text to
  21. not function properly. If you use HTML corrector, make sure that you
  22. arrange your filters such that collapse text is below (heavier than)
  23. HTML corrector. You can find this setting in admin/settings/filters.