Also from my side many thanks for the essential page title module!
I just noticed that the tag is correctly handled by the page title module, but the tag is not changed. Is this intentional? I would expect that the two should have the same content.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | use_page_title_for_dc_title.patch | 997 bytes | svdoord |
Comments
Comment #1
svdoord commentedSorry about the missing tags. It seems I cannot edit my post, so as a comment a retry:
I just noticed that the <title> tag is correctly handled by the page title module, but the <meta name="DC.title"> tag is not changed. Is this intentional? I would expect that the two should have the same content.
Comment #2
nicholasthompsonWhat is the Meta DC.title? I've never seen this one... I suppose its something that could be added to the head by Page Title? What puts it there for you - are you using NodeWords?
Comment #3
svdoord commentedYes, I'm indeed using nodewords. Is that where the tag comes from? I just assumed it to be always there. Still, it would be nice if page_title could handle it as well, if it's there...
For background information on this tag, refer to http://dublincore.org/documents/dc-html/.
Comment #4
nicholasthompsonI believe it is provided by NodeWords... Will investigate.
Comment #5
svdoord commentedGreat, thanks!
Comment #6
jenlamptonsvdoord,
I found a bug in the NodeWords / meta tags module that caused DC.Title to never be printed...
here is my fix: http://drupal.org/node/323230
Please review my patch.
Jen
Comment #7
svdoord commentedHi Jen,
Unfortunately I'm running Drupal 6, so I'm unable to test your patch.
However, I doubt that we're referring to the same issue here. You say that DC.Title is never printed, but that is not my issue. DC.Title _is_ printed, but the value that is printed is not the correct one. It prints the title from the node, not the one I configured as "page title" using nodewords.
For example:
Title = "The title I see in my document"
Page title = "The title displayed in the title bar of the web browser" (<- nodewords)
Now both the and should be "The title displayed in the title bar of the web browser", but only the is, and is "The title I see in my document".
Do you agree that these are two different issues? If so, could you please change the issue properties back to project Page Title and version 6.x-2.x-dev?
Thanks,
Stefan
Comment #8
jenlamptonStephan,
"The title displayed in the title bar of the web browser" has nothing to do with this module. That title tag is the responsibility of the Page Title module (http://www.drupal.org/project/page_title). And as you stated above, is working as expected, so let's ignore that for now and focus on what's NOT working.
My issue was a meta tag DC.title that was only printed out in the 5.x branch, when no data was entered into the DC.title field.
I haven't looked at the 6.x branch, but I expect there might be similar problems in the code.
Jen
Comment #9
svdoord commentedAs I said before, for information on DC.title, please refer to http://dublincore.org/documents/dc-html/ and Your Favorite Internet Search Engine. As I understand it, the Dublin Core project (of which DC.title is a part) is an effort to standardize meta data information. The DC.title meta tag is very similar to the HTML tag, so I would expect that they should always be the same.
I finally dove into the source code and the matter of how patches are supposed to be created and all, and I created a patch that fixes my problem. Again, this patch causes the DC.title tag to have the same value as the tag, even when page_title is enabled and a different document title and page title are set.
Patch attached; please review.
Oh, by the way: the existing nodewords code mentions that drupal_get_title() cannot be used, referring to http://drupal.org/node/103399. I don't quite understand in what situations drupal_get_title() may or may not be used, but the method I call in page_title (namely page_title_get_title()) may call drupal_get_title() as well. So I would ask reviewers to also pay respect to this aspect. Thanks!
Comment #10
sedmi commentedI have the same problem, I want dc title to be same as title generated by page_title module, I guess that's what this patch is solving, but I'm new to drupal and don't know what to do with this patch? where to place that code?
Comment #11
jenlampton@sedmi,
please review http://drupal.org/patch/apply on how to apply patches.
Jen
Comment #12
sedmi commentedHi, now almost a month after I installed that patch I see that I don't have desired result on taxonomy pages. On story and page nodes it works great, but on taxonomy pages where the page title is generated by taxonomy module, I still have different dc title and page title. Any patch for that? Or maybe for complete removal of dc title?
Comment #13
jenlampton@ sedmi -
the page_title module still does not play nicely with taxonomy, so if you are using a patch that is expecting a page_title value for the DC.title field, it might not fail gracefully if there is no page_title value created, even if that module is installed. That's a good place to start looking.
Jen
Comment #14
mgiffordHaving the title there is good, but there are other DC elements that are also worth including.
I just wrote this up - http://openconcept.ca/blog/mgifford/adding_dublin_core_metadata_to_drupal
But there is also this code that is very relevant - http://drupal.org/node/356711
Comment #15
avpadernoAs the Drupal 5 version is not supported anymore, I am changing the status of this report.
Comment #16
svdoord commentedThis issue was confused. I'm now setting the issue settings correctly, hoping that people will understand. If not, we should probably close the issue and create a new one, but I'll try this first.
Comment #17
damienmckennaThe correct way of handling meta tags is to use one of the modules specifically designed for that, e.g. Nodewords.