I have some problems with the way Nodewords now handles robot-meta tags.

I have activated the meta tags description, keywords and robots to show on edit forms and to output in html.

In the former versions of nodewords (6.x-1.11) there were check boxes to select the robot -meta tag, and if I selected nothing, no robot meta tag was shown in the html code. That was a good way of handling robot – meta tags.

Now (nodewords 6.x-1.12 beta 9) there is this drop down field. The Problem:
If I create a new node and do not enter anything in the meta tag fields, there still is the robot tag “noindex, nofollow” shown in the html output of the new node. I manually have to select the robot-tag “index, follow” each time. If I forget it, the site is not indexed by google. That’s very bad.

You should set the default of the robot meta tags (if nothing is actively selected) to “none” or at least to “index, follow”.

Comments

snorkers’s picture

I've actually noticed this too... this is a problem as I have a lot of non-techies entering content in the department site I run... and asking them to manually change the robots meta tag is a bit too much.

Will probably disable robots output until we can work this one out.

Anonymous’s picture

Component: User interface » Code

If you set the default value to the one you desire, it will be used each time a specific value is not set. Setting the value to index, follow would not probably be desired by somebody else.

snorkers’s picture

No it doesn't. That's the nature of the issue.

The default values ( in /admin/content/nodewords/default) are set to 'Index, Follow'. However, new nodes will have a 'noindex, nofollow' in the robots tag if nothing is set by the user creating the node.

Anonymous’s picture

Title: Robot Meta Tags default » The default value for the meta tag ROBOTS is not used
MJH’s picture

The reason for this problem is here:

file: nodewords/nodewords_basic/includes/nodewords_basic.nodewords.tags.inc
line: 255 (beta 9)

$form['robots']['index_follow'] = array(
'#type' => 'select',
'#title' => t('Robots'),
'#options' => $select_options,
'#multiple' => FALSE,
'#default_value' => empty($content['index_follow']) ? 'noindex,nofollow' : $content['index_follow'],
);

==> If you create a new node and select nothing in the robot drop down list 'noindex,nofollow' is automatically selected as default value and saved for that node.
That's why the site-wide default values are not working.

Solution: If the user selects nothing in the robot drop down list, $content['index_follow'] should be saved as empty (perhaps a placeholder like 'none').

Anonymous’s picture

Status: Active » Fixed

The problem was with a different function, used to check when the meta tag value was empty. I changed the function, and committed the code in the repository.

Thanks for your report.

Anonymous’s picture

I have marked #774652: Meta tag ROBOTS default is noindex,nofollow as duplicate of this report.

Anonymous’s picture

tcibah’s picture

Having the same issue, using 6.x-1.12-beta9

Anonymous’s picture

Having the same issue, using 6.x-1.12-beta9

When a bug report for version 6.x-1.12-beta9 is marked as fixed, it means that a version after that contains the fix for the issue; it could be a new official release, or a development snapshot. In any case, it's not possible to change an official release, and the only way to fix an issue is to create another release.

powery’s picture

When will be next version released?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.