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.
Hi, I need a field to add value robots meta tag, not just check to add noindex and nofollow as well as the option to add the index and follow.
Comment | File | Size | Author |
---|---|---|---|
#5 | metatag-n1719492.patch | 1.27 KB | DamienMcKenna |
#1 | nodewords-robots.png | 33.46 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaDo you mean e.g. checkboxes for all of the ROBOTS options, like Nodewords has?
Comment #2
Prague man CreditAttribution: Prague man commentedYes, I solved it adding these lines to code:
and thats working.
Comment #3
Prague man CreditAttribution: Prague man commentedwithout
<strong>
attributes.Comment #4
FiNeX CreditAttribution: FiNeX commentedI agree with Prague man, the solution works fine. But it should be added a condition in order to exclude "noindex" and/or "nofollow" if "index" and/or "follow" have been selected and vice versa. Maybe when "index" is selected then "noindex" should be deselected and deactivated.
What do you think about?
Comment #5
DamienMcKennaThis patch adds FOLLOW, INDEX and NOYDIR.
Comment #6
DamienMcKennaCommitted.
Comment #8
Andre-Bin case anybody is running into the issue with having the bad ordering as "follow, index" as a problem (it should be index, follow):