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.
It would be a nice feature to only show the "read more" link if the text has been trimmed.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2580059-3-only-show-ellipsis-on-trim.patch | 2.64 KB | Sam152 |
Comments
Comment #2
Sam152 CreditAttribution: Sam152 commentedComment #3
Sam152 CreditAttribution: Sam152 commentedFor my purpose (linking to comments), the read more link also doesn't include the fragment that entity_uri can return. Adding that to this patch.
Comment #4
HLopes CreditAttribution: HLopes commentedCan confirm, smart trim is stripping all link options, meaning stuff like:
query
fragment
absolute
alias
external
language
https
base_url
prefix
script
entity_type
entity
I would suggest adding something like $link_options = $uri['options'];
Comment #5
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #3 to smart_trim.module does not apply to the latest smart_trim 7.x-1.x-dev and needs to be re-rolled.