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.
Google+ supports a few additional meta tags, that appear to borrow from schema.org:
<meta itemprop=”name” content=”A Google+ title for the page being shared. Keep keywords towards the front” />
<meta itemprop=”description” content=”Longer form description, you’ve 200 words here that can specifically reference your presence on Google+” />
<meta itemprop=”image” content=”http://www.yourdomain.com/supercharmingimage.png” />
Comment | File | Size | Author |
---|---|---|---|
#5 | metatag-n2292043-5.patch | 10.89 KB | DamienMcKenna |
#4 | metatag-google_plus_support-2292043-4.patch | 10.33 KB | eric.chenchao |
#1 | metatag-google_plus_support-2292043-1.patch | 9.95 KB | eric.chenchao |
Comments
Comment #1
eric.chenchao CreditAttribution: eric.chenchao commentedGoogle+ metatag integration module attached.
Known Issues
--------------------------------------------------------------------------------
- When using Zen or its derived theme, Zen will serialize RDF Namespaces into
an RDFa 1.1 prefix attribute, which means itemtype will be included in prefix="..."
To avoid that this module will not add a itemtype directly to $variable['rdf_namespaces'].
Instead, you have to add itemtype code manually in the template.php or your theme.
Here is the example code you need to adapt and add to your code.
Comment #2
eric.chenchao CreditAttribution: eric.chenchao commentedComment #3
DamienMcKennaNice, Eric! This needs a little tidying to match Drupal's coding standards (mostly comments), but is almost there. Also, the info file needs to be updated.
Comment #4
eric.chenchao CreditAttribution: eric.chenchao commentedHey Damien,
Thanks for the quick response. I have cleaned up code a little bit with updated .info
Could you check it again, please? Thanks.
Comment #5
DamienMcKennaI reviewed the code and made a few minor changes, mostly in the comments. Nicely done, Eric!
Comment #6
DamienMcKennaCommitted!
Comment #8
eric.chenchao CreditAttribution: eric.chenchao commentedYeah, thanks Damien; -)
Comment #10
markbannister CreditAttribution: markbannister commentedThis patch seems to be the source of this issues (at least in some cases): https://www.drupal.org/node/1923616
Warning: preg_match_all() expects parameter 2 to be string, array given in token_scan() (line 124 of /home/sites/drupal7/public_html/includes/token.inc).
Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /home/sites/drupal7/public_html/includes/unicode.inc).