Entering values into TD.title didn't actually change the page title. I found, when examining nodewords/metatags/DC.Title.inc (why its capitalized, I have no idea) that the function nodewords_dc_title_prepeare only accounted for what to do when a DC.Title was NOT supplied by the user. The first if was never followed up by an else:

 if (!isset($value) || empty($value)) {

I added the following else, and moved the return $value below it.

  else {
    // what if it was actually provided?
    $value .= ' - ' . variable_get('site_name', 'Drupal');
  }
  return $value;

patch attached.
Jen

CommentFileSizeAuthor
dc_title_else.patch503 bytesjenlampton

Comments

smitty’s picture

This works fine for me too! Please commit it.

avpaderno’s picture

Status: Needs review » Closed (won't fix)

As the Drupal 5 version is not supported anymore, I am changing the status of this report.

smitty’s picture

Version: 5.x-1.12 » 6.x-1.0
Status: Closed (won't fix) » Active

Is this solved in D6 already?

avpaderno’s picture

Assigned: jenlampton » Unassigned
Category: bug » support
Status: Active » Fixed

Entering values into TD.title didn't actually change the page title.

Settings the DC.Title doesn't change the page title, because the DC.Title meta tag is not though to replace the page title (which is the one set in the title tag), but to suggest an alternative title to the search engines that actually use it.

avpaderno’s picture

Title: DC.Title does not apply to page » DC.Title does not apply to the page

Status: Fixed » Closed (fixed)

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