This is a simple module to expand or collapse long texts by clicking on a "show more/show less" link. It provides a configurable formatter which can be attached to each text area field of an entity.

The following field types accept this formatter:

  • "text_long",
  • "string_long",
  • "text_with_summary",
  • "text_long_with_summary"

Configuration

  1. After enabling this module, navigate to your entity type's "manage display" tab.
  2. Choose the "Expand collapse formatter"
  3. Adjust the settings using the gear icon. You can change the "trim length",
  4. "default state", open and close text, and the classes used for each action.
  5. Click "Update" to save these settings and then remember to click "Save" at the
  6. bottom of the page.

After these steps, you should see the "read more" link at the bottom of the
fields with this formatter, so long as they contain more characters than the
trim length.

Supporting organizations: 
Providing ongoing maintenance

Project information

Releases