DC.Title does not apply to the page

jenlampton - October 19, 2008 - 05:55
Project:Nodewords
Version:6.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

AttachmentSize
dc_title_else.patch503 bytes

#1

smitty - February 5, 2009 - 15:54

This works fine for me too! Please commit it.

#2

KiamLaLuno - July 2, 2009 - 16:16
Status:needs review» won't fix

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

#3

smitty - July 3, 2009 - 11:26
Version:5.x-1.12» 6.x-1.0
Status:won't fix» active

Is this solved in D6 already?

#4

KiamLaLuno - July 3, 2009 - 16:07
Category:bug report» support request
Assigned to:jenlampton» Anonymous
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.

#5

KiamLaLuno - July 3, 2009 - 16:07
Title:DC.Title does not apply to page» DC.Title does not apply to the page

#6

System Message - July 17, 2009 - 16:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.