Add Trim only on a word boundary / Add an ellipsis

Events happening in the community are now at Drupal community events on www.drupal.org.
criscom's picture

Adding the Trim only on a word boundary / Add an ellipsis functionality would really boost Display Suite's Trim Option and make it really usable. I made some really cool views with Display Suite Format Options but had to remove it because my customer did not like that words where cut off after two or three letters.

Did anyone have the same issue? Is there a work around?

Best,
Chris

Comments

Does really nobody need this

criscom's picture

Does really nobody need this feature?

I guess we do

Lars Bo Jensen's picture

I'm not sure. I use - and recommend users to use - the abstract field above the text field delivered with core. An abstract is better than any cut-off string. I would appreciate the option to make the abstract mandatory and be able to set the max length of it.

Have you tried the Smart Trim module? http://drupal.org/project/smart_trim

Smart Trim looks promising!

anneeasterling's picture

Chris,

I agree 100% with your original post. Smart Trim seems like it would do just what we wanted and perhaps more in other situations.

Going to install and try it out today :)

Anne

PS: Lars, thanks for the suggestion! Seems like that module would be a great addition to core.

You might also like to

xtfer's picture

You might also like to consider http://drupal.org/project/field_formatter_settings and its dependencies.

Often, the solution to a Display Suite problem is actually to address the issue at a Field level instead. :)

thanks

criscom's picture

Both smart trim and field formatter look great. Thanks a lot for this!

Chris

Display Suite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week