When I upgraded to 6.x-1.11, I found it is very good, but there is a problem I don't know how to fix.
I added the default description tag value, and chose the

  • Generate meta tag content when the meta tag content is empty
  • Generate meta tags content from the node teaser, or the node body when the node teaser is empty

Then I checked the generated description, which looks good, but then I edit a node page, the meta description textarea was fulled by the default description value, then I submitted the node, the default value was same as the default value.

so how can I change this, when I edit a non-description node, the meta description textarea won't be fulled by default?

Thanks

[Edited by kiamlaluno to remove the sentences all in bold]

Comments

nirad’s picture

Having the same problem. The abstract for all content is the default, not the teaser. I tried both 1.11 and the dev build dated 01/07/10.

This was the original problem with the 1.1 version of the module that everyone wanted fixed. Also, the geo.position tag is also using the default and not the coordinates from the location module.

apaderno’s picture

Title: The problem after upgrading to 6.x-1.11 » Default values are always used when no values are set for meta tags
Component: Third-party modules integration » Code
Category: bug » support

If you enter a default value for a meta tag, then it will be used in all the cases you don't explicitly set a value.

What the module is really missing is a way to say it to not set any value for that meta tag; in example, if I would not want to set the meta tag REVISIT-AFTER for a node, then I could enter a negative value, and the module would not output the meta tag at all.
Or I can back port the code developed for branch 6.x-3, where for each meta tag there is a checkbox that when selected allow to override the default value, and use an empty string to avoid the meta tag is output.

If you are having an issue with the location meta tag then open a different issue, reporting which version of the location module are you using; it is possible the code in the other module has been changed, and Nodewords is not compatible with all the versions of location.module.

apaderno’s picture

robbin.zhao’s picture

Now I removed the default description value, so it works well.

nirad’s picture

okay, getting rid of the defaults works. but i think this is unintuitive. if you keep it this way, you should at least document it clearly on the defaults form.

apaderno’s picture

I have marked #688090: the default setting as duplicate of this report.

runeveryday’s picture

what's the way of you that removed the default description value?

runeveryday’s picture

" if I would not want to set the meta tag REVISIT-AFTER for a node, then I could enter a negative value, and the module would not output the meta tag at all."

kiamlaluno,you are not right, because "The meta tag REVISIT-AFTER value must be a positive number."

apaderno’s picture

@runeveryday: Read the sentence in the context. What I was reporting is that the module could use a particular value with the meaning of don't use any values, including the default one.
An empty string actually says to the module to use the default value, while a negative value for the meta tag REVISIT-AFTER could be used (as it is not a valid value) to avoid the meta tag is output for that particular node, user profile, taxonomy term, etc.

usraju’s picture

Title: Default values are always used when no values are set for meta tags » how can I change this, when I edit a non-description node, the meta description textarea won't be fulled by default?
Assigned: Unassigned » usraju
Priority: Normal » Critical
apaderno’s picture

Title: how can I change this, when I edit a non-description node, the meta description textarea won't be fulled by default? » Default values are always used when no values are set for meta tags
Assigned: usraju » Unassigned
Priority: Critical » Normal
Status: Active » Fixed

The code has been changed in the branch 6.x-3 already; the code will not back ported to branch 6.x-1.

Status: Fixed » Closed (fixed)

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

MakeOnlineShop’s picture

I just understand now that the default description and keywords should be let empty if we want Nodewords to auto fill these meta ?

Can you confirm ?

Empty here /admin/content/nodewords (Global keywords) and admin/content/nodewords/meta-tags (default values) ?

Thanks a lot for your help.

DamienMcKenna’s picture

@make-online-shop: Versions up through 6.x-1.13 would pre-fill the node description field with the default during node creation/editing, with 6.x-1.14-beta1 it only uses the default during output if nothing was previously manually entered. So, please update :)

MakeOnlineShop’s picture

Thank you, but when my visitors post I do not ask them to fill the meta, so I should let the DEFAULT empty to be sure that a meta description based on their post will be created, right ?

DamienMcKenna’s picture

Correct.