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.
There are at least two options missing for the robots meta tag:
notranslate - Do not offer translation of this page in search results.
noimageindex - Do not index images on this page.
I'm particularly interested in the noimageindex one as I want to exclude my images from the search index.
Thanks
AndyB
Comment | File | Size | Author |
---|---|---|---|
#1 | add-noimageindex-notranslate-1967856-1.patch | 980 bytes | duozersk |
Comments
Comment #1
duozerskHere is a patch adding this functionality. ;)
Comment #2
duozerskComment #3
AndreyMaximov CreditAttribution: AndreyMaximov commentedUsefull feature and good patch -> RTBC.
Comment #3.0
AndreyMaximov CreditAttribution: AndreyMaximov commentedtypo fix
Comment #4
DamienMcKennaCommitted. Thanks!
Comment #6
duozerskDamien,
Thank you for committing this patch.
Looks like there was a change in the 'notranslate' tag description from:
'Prevent search engines from offering translation of this page in search results.'
to:
'Prevent search engines from offering to translation this page in search results.'
and it introduced a typo... So it either should be like in the patch or the
translation
word should be changed totranslate
.Thanks
AndyB
Comment #8
DamienMcKennaDoh! I've fixed this. Thanks duozersk!