E.g. <em>Edit Event</em>My Event Title | My Site Title

This only seems to happen when editing existing nodes rather than creating new ones for the first time.

Anybody got a fix for this?

#6 page_title-1188012-6.diff417 bytesYaron Tal
Members fund testing for the Drupal project. Drupal Association Learn more


nicholasThompson’s picture

Status: Active » Postponed (maintainer needs more info)

I dont have this problem - what Page Title Pattern are you using?

ddrozdik’s picture

Version: 7.x-2.x-dev » 7.x-2.4-beta1
Status: Postponed (maintainer needs more info) » Active

I have this problem too.
I have just installed this module and created patterns for content types([current-page:page-title] | [site:name]) and went to edit node and I saw title of page "Edit EventMy Event Title | My Site Title", field page title was empty, because I have just installed module.

ddrozdik’s picture

Version: 7.x-2.4-beta1 » 7.x-2.x-dev

In 7.x-2.x-dev version problem exist too

ddrozdik’s picture

If add one string to file page_title.page_title.inc in function page_title_page_title_alter all will be work well.

function page_title_page_title_alter(&$title) {
 // If nothing above set a title, give the legacy function a chance to act
  if (empty($title)) {
    $title = page_title_set_title();

  // If we still have no title, fall back to the title provided by Drupal Core
  if (empty($title)) {
    $title = drupal_get_title();
    $title = strip_tags($title); // added new line for strip html tags
nicholasThompson’s picture

Status: Active » Closed (fixed)

This is committed into dev. Cheers for the updates.

Yaron Tal’s picture

Issue summary: View changes
Status: Closed (fixed) » Needs review
417 bytes

Getting the same problem again. Created this patch to remove html tags from the title instead of just escaping them.

nicholasThompson’s picture

Status: Needs review » Needs work

I cannot replicate this on dev branch on latest D7... Can you please provide steps and the theme you're using.