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

jdflorez’s picture

You should use [node:summary] instead of [node:body].

DamienMcKenna’s picture

Status: Active » Fixed

Correct, the correct token to use for the node summary is [node:summary] :)

DamienMcKenna’s picture

Status: Fixed » Active

Ok, going to reopen this until I can replicate the actual issue, there might be a bug (maybe in Token?) that's causing this problem.

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

This should be working a-ok with the latest core, Token and Metatag.