Smart Trim Tokens for text with summary fields

Created on 11 August 2016, almost 8 years ago
Updated 4 June 2024, 22 days ago

In trying to get the metatags module to use a sensibly trimmed and cleaned version of a field, I came to the conclusion it would be really useful to have tokens exposed for textarea fields.

Preferably this token should be dynamic so that an argument of trim length can be passed in, this broadens the usefulness of the tokens.

✨ Feature request
Status

RTBC

Version

2.1

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa duncan.moo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • heddn Nicaragua

    I'm sure the implementation between D7 and D10 is a little different. But a smart trim token for summary fields is actually a missing feature-set in D10 too. And since the life-support for D7 is so short at this point, I'm going to just move versions and work on a version of these functionality for the 2.1.x version.

  • heddn Nicaragua

    heddn β†’ changed the visibility of the branch 2.1.x to hidden.

  • heddn Nicaragua

    Initial implementation in smart trim 2.1.x provided.

  • Pipeline finished with Failed
    22 days ago
    Total: 623s
    #190890
  • Status changed to RTBC 22 days ago
  • πŸ‡ΊπŸ‡ΈUnited States akalata

    Works as expected, though I'm not sure about the assumption of a `token` view mode -- but I think that's more of a foundational approach with "how do we handle tokens that might need to respond to settings?".

  • heddn Nicaragua

    The 'token' view mode logic is exactly what token.module assumes. It seems like that assumption was a safe one to continue using here too.

Production build 0.69.0 2024