Drupal 7 Smart Trim: A simple way to shorten long text areas

By adam
Thu, 2015-01-08 07:45
Daily Dose of Drupal Episode #189

Share with Others

The Drupal 7 Smart Trim module allows you complete control over how you want text to be displayed when shortened. Put another way this is the module to use if you want to display a teaser or a beginning part of a longer text area.

Once installed you are able to set a variety of things. These include: shorten length by either words or characters, what to display for the ellipse (...), if you want a "read more" link to appear and what you want the link to say and lastly if you prefer to use the Drupal summary option.

Honestly, for a content trimming module Smart Trim definitely covers its basis. The options provided far exceed what you will really use this module for.

In the video, I show how to configure the module and also how to use the Smart Trim formats with views (which I think is where this module can shine).

Check out the video and let me know in the comments how you might use this module.


I was floored when I realized how dumb the native Drupal text field trim was after getting so used to the one in Views, which can do all the good stuff like trim on word boundaries, add ellipses and filter out markup. This is a great module!

Thanks for the comment. I agree, the native Drupal text trim is definitely "lacking" to say the least. The Smart Trim module is a big help.

Post new comment