After I Panelize a node, on the node display, it starts displaying the Menu title as the Page title instead of the Node's title.

Comments

Status:Active» Postponed (maintainer needs more info)

The menu title of the node display should be the page title:

From node_menu():

<?php
  $items
['node/%node'] = array(
   
'title callback' => 'node_page_title',
   
'title arguments' => array(1),
   
// The page callback also invokes drupal_set_title() in case
    // the menu router's title is overridden by a menu link.
   
'page callback' => 'node_page_view',
   
'page arguments' => array(1),
   
'access callback' => 'node_access',
   
'access arguments' => array('view', 1),
  );
?>

It seems strange that before it is panelized, the node shows the node's title, then after it's panelized, it starts using the Menu link title. See the Screencapture: http://screencast.com/t/ltKuIxwc

Once that happens, you can't change to the title on the page without changing the menu link title.

Status:Postponed (maintainer needs more info)» Active

All right. It does appear that http://api.drupal.org/api/drupal/modules--node--node.module/function/nod... does an additional title set that I didn't realize it needed to do. That'll mean fixing the API to properly set the title from an entity. That shouldn't be too difficult, I think.

Just to note this issue also affects the 6.x version.

I'm not familiar enough with Panels or Panelizer to take a crack at this directly, but here's a temporary workaround to revert this in the theme layer:

/**
* Preprocess panel pane
*/
function themename_preprocess_panels_pane(&$vars) {
  // Override Panelizer's page title override
  if ($vars['display']->context['panelizer']->data->title) {
    drupal_set_title($vars['display']->context['panelizer']->data->title);
  }
}

Status:Active» Fixed

This actually needs to be fixed in CTools. I just checked in a fix there.

Project:Panelizer» Chaos tool suite (ctools)
Version:7.x-2.0-beta2» 7.x-1.x-dev

Title:Panelizer displays menu title instead of node titlePage Manager displays menu title instead of node title

Adjusting title; this is NOT unique to Panelizer at all.

Status:Fixed» Closed (fixed)

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

Version:7.x-1.x-dev» 6.x-1.x-dev
Status:Closed (fixed)» Patch (to be ported)

Seems like this should be back-ported. With the nod from earl I'll cherry-pick the commit back.

Status:Patch (to be ported)» Fixed

done.

Status:Fixed» Closed (fixed)

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