Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By michaelmallett on
Hi,
Bit of a simple one perhaps. I am using a view to display the body summary and a thumbnail. I want to only display the summary if the summary field has been populated, NOT have an auto-trimmed version of the body display. Is there a way to do this, turn off the auto body trim feature, without having to create a new field (and then have to mess about display settings etc)
Thanks
Mike
Comments
Here's how I did it: Add the
Here's how I did it:
Add the body field
Formatter: Default (doesn't really matter)
Style: Nothing Checked here except Add Default Classes
Rewrite results: Rewrite the output of this field: [field_body-summary]
Rewrite results: Convert newlines to HTML
tags if you wish to
No results behavior: Nothing checked
That should it... cheers!
J-F Bohémier
Angelicode.com
Thankyou very much!
Thankyou very much!
Other solution to use this on
Other solution to use this on manage display: custom formatter, here's some quick example code