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.
I have a specific content type for Blog Posts. I have add a custom view mode for Tokens under that content type and in that custom view mode I am trimming the body down to 150 characters.
In Meta-Tags, for the OG:Description, I am using [node:body], but the full content of the body is always rendered, not the trimmed version of it.
Am I doing something wrong in order to use the trimmed version of the token?
Thanks
Comments
Comment #1
jdflorez CreditAttribution: jdflorez commentedYou should use [node:summary] instead of [node:body].
Comment #2
DamienMcKennaCorrect, the correct token to use for the node summary is [node:summary] :)
Comment #3
DamienMcKennaOk, going to reopen this until I can replicate the actual issue, there might be a bug (maybe in Token?) that's causing this problem.
Comment #4
DamienMcKennaThis should be working a-ok with the latest core, Token and Metatag.