First, for all the people that helped solving http://drupal.org/node/1295524 THANKS! I think it is an important advance for the Metatag module.
For further optimization, I would like to make a small contribution.
I see advantages in using a new token as a replacement for [node: summary], for example with the name [node: summary-metatag].
Using this, the original token [node: summary] does not change, which is good for the consistency of the token system.
The token [node: summary-metag] will get the content of the [node: summary] as built in metatag 7.x-1.0-beta6.
Validating the Metadescription tag, sometimes I get warnings using to much characters and words
As an option: a setting field in Metatag settings. In this field, administraters can set the maximum number of words and/or characters for [node: summary-metag] to generate. You can also think of an option: text breaks at the end of a word.
Without a [node: summary-metag] settingsfield, a default value for this could work also.
Thanks,
Martin
Comments
Comment #1
DamienMcKennaI've brought up this issue in the Token issue queue, to see if there might be a way to handle this globally rather than just for Metatag: #1974856: Provide a way to trim a token to a specific string length
Am marking this as Postponed until we get some direction from the Token maintainers (*cough* Dave *cough*).
Comment #1.0
DamienMcKenna: at end of link, breaks the link
Comment #2
DamienMcKennaI've opened a new issue which will cover this feature request: #2309017: Automatically trim meta tag lengths (D7)