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.
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
Comment #1
nirad CreditAttribution: nirad commentedHaving 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.
Comment #2
apadernoIf 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.
Comment #3
apadernoI have marked #679242: Meta description on some of the node pages uses default description as duplicate of this report.
Comment #4
robbin.zhao CreditAttribution: robbin.zhao commentedNow I removed the default description value, so it works well.
Comment #5
nirad CreditAttribution: nirad commentedokay, 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.
Comment #6
apadernoI have marked #688090: the default setting as duplicate of this report.
Comment #7
runeveryday CreditAttribution: runeveryday commentedwhat's the way of you that removed the default description value?
Comment #8
runeveryday CreditAttribution: runeveryday commented" 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."
Comment #9
apaderno@runeveryday: Read the sentence in the context. What I was reporting is that the module could use a particular value with the meaning of
.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.
Comment #10
usraju CreditAttribution: usraju commentedComment #11
apadernoThe code has been changed in the branch 6.x-3 already; the code will not back ported to branch 6.x-1.
Comment #13
MakeOnlineShop CreditAttribution: MakeOnlineShop commentedI 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.
Comment #14
DamienMcKenna@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 :)
Comment #15
MakeOnlineShop CreditAttribution: MakeOnlineShop commentedThank 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 ?
Comment #16
DamienMcKennaCorrect.