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

DamienMcKenna’s picture

Status: Active » Postponed

I'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*).

DamienMcKenna’s picture

Issue summary: View changes

: at end of link, breaks the link

DamienMcKenna’s picture

Issue summary: View changes
Status: Postponed » Closed (duplicate)

I've opened a new issue which will cover this feature request: #2309017: Automatically trim meta tag lengths (D7)