Hello,
I'm adding a metatag by path, to be used with the Article node type (the default Article content type). In the Open Graph Image field, I'm using the Token [node:field_article_image]. I'm not changing anything else from the proposed or default values. When I try to save this metatag definition, I get the error message: "The Open Graph image is using the following invalid tokens: [node:field_article_image]."
If I add a true URL (like http://vinotopia.be/sites/default/files/styles/thumbnail/public/drupalvi... ) then the metatag is saved without any problem.
I'm using
Drupal Core 7.16
Chaos Tools 7.x-1.2
Token 7.x-1.4
Context 7.x-3.0-beta4
Anyone any clue?
Thanks & cheers --Mike
Comment | File | Size | Author |
---|---|---|---|
#2 | 121030 node-screenshot.jpg | 188.85 KB | vinotwit |
Comments
Comment #1
DamienMcKennaDo you have the latest version of Token installed? Have you verified via the token browser popup that this token is still valid? Can you please attach a screenshot of the node tokens that it shows in the popup?
Out of interest, have you tried adding a new Metatag configuration for that specific content type to see if that would work instead? You do that on the the Metatag settings page (admin/config/search/metatags) - just click "Add a meta tag default" and select the content type you want to use.
Comment #2
vinotwit CreditAttribution: vinotwit commentedHi Damien,
Last version of Token installed - in fact, everything is last available version. I'm adding tokens only through the pop-up, so I assume the token is valid - screen shot attached.
But your suggestion is more interesting... Adding the token in a new Article Metatag default DOES work, and now the Facebook share works perfectly. In a way that's good because that's a solution for me (and thank you very mucj for that), but maybe it makes the bug a bit stranger?
Thanks --Mike
Comment #2.0
vinotwit CreditAttribution: vinotwit commentedbug
Comment #3
DamienMcKennaThis can happen when EntityToken is installed, try changing the token to [node:field-article-image] instead.