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.
Add support for the Rating meta tag. See also: (WHATWG meta data wiki
Comment | File | Size | Author |
---|---|---|---|
#9 | metatag-1498762-add-new-tag-rating-9.patch | 1.93 KB | thejimbirch |
| |||
#2 | metatag-n1498762-1.patch | 1.03 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaComment #2
DamienMcKennaThis adds the values taken from the metatags.org site, but also adds select_or_other integration for those who need to add other values.
Comment #3
DamienMcKennaClosed a duplicate: #1621268: Adding RTA label.
Comment #4
DamienMcKennaCommitted.
Comment #7
DamienMcKennaThis needs to be ported to D8.
Comment #8
DarkstarTom CreditAttribution: DarkstarTom commentedHas this patch been ported yet? I need this functionality. Thanks.
Comment #9
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedAttached is a patch that adds the Rating meta tag. Rather that add it as a select field like the Drupal 7 patch did, I elected to add it as a text field as there are multiple options a content creator may want to use this tag, the SafeSurf/Safe For Kids method that uses the list of items from the Drupal 7 patch, or the RTA method that is a proposal in the WHATWG list.
This way the meta tag will pass W3C validation, and people can use it how they see fit.
References:
https://www.metatags.org/meta_name_rating
https://wiki.whatwg.org/wiki/MetaExtensions
http://www.rtalabel.org/index.php?content=howto
https://www.johnfdoherty.com/meta-descriptions-that-will-not-help-seo/
Comment #10
vipul tulse CreditAttribution: vipul tulse commented@thejimbirch, Thanks for providing the patch.
Comment #11
vipul tulse CreditAttribution: vipul tulse commented@thejimbirch, Your patch is working fine for me. As per the mentioned changes, I matched it with Pareview and tested in simplytest.me over Extend page. PFA.
Comment #12
vipul tulse CreditAttribution: vipul tulse commentedComment #14
DamienMcKennaCommitted. Thanks!