Field Word Boundary

Component ID

1539214

Component name

Field Word Boundary

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

5446

Component created

Component changed

Component body

This module is unsupported! Please refer to Field HTML trim instead, as that module is being actively maintained.

Field Word Boundary is a module that extends the settings for the Trimmed and Summary or trimmed formatters for long text fields.

The normal trim behavior will trim the text to a maximum length, by it's nearest sentence or paragraph boundary. This module will allow us to trim by the nearest word boundary instead, and will add an optional ellipsis.

If you're familiar with Views, you've probably used this settings in Views if you've printed a text field.

Requirements

Since the formatter settings isn't alterable by core, this module depends on the Field formatter settings module.

Alternatives

If you don't want to use the Field formatter settings module, you should take a look at Smart Trim. This module pretty much accomplish the same thing, but instead of altering the existing formatters, you'll get a new one.

Module sponsored by Odd Hill