Hi,
Coming from http://drupal.org/node/1281104 I would very much like an easy solution to be able to set my site to NOINDEX/NOFOLLOW or other possible scenarios INDEX/NOFOLLOW etc.. I think somewhere has to be set site wide... noindex/nofollow.

Now as I understand the working correctly I have to go into all meta tags, override them and check

 Prevent search engines from indexing this page.
 Prevent search engines from following links on this page.

Thanks a lot in advance for considering this. It took me quite some time to find the correct working with current situation.
Greetings, Martijn

Comments

damienmckenna’s picture

Status: Active » Closed (won't fix)

This isn't anything I intend to change so I'm marking it as "closed (won't fix)".

There are a few ways you can ensure that the robots options are set the way you want:

  • Change all of the different defaults configured via admin/config/search/metatags the way you want, then just make sure nobody changes the options in the entity (node, user, etc) forms.
  • Use hook_metatag_config_default_alter() to set the robots options the way you want for all entity types, and again make sure nobody changes them per entity.
  • Use hook_metatag_metatags_view_alter() to change the output so that the robots options always output the way you want, regardless of what is set in the forms.

FYI hook_form_alter() won't work as the fields are added later in the form building sequence than can be directly accessed with it, keep an eye on #1466292: Document all Metatag's hooks for further documentation.

leopathu’s picture

Issue summary: View changes
leopathu’s picture

leopathu’s picture

leopathu’s picture

leopathu’s picture