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.


merlinofchaos’s picture

Status:Active» Postponed (maintainer needs more info)

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

From node_menu():

['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),
kruser’s picture

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:

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

merlinofchaos’s picture

Status:Postponed (maintainer needs more info)» Active

All right. It does appear that 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.

dbassendine’s picture

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) {
merlinofchaos’s picture

Status:Active» Fixed

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

merlinofchaos’s picture

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

Title:Panelizer displays menu title instead of node title» Page 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.

neclimdul’s picture

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.

neclimdul’s picture

Status:Patch (to be ported)» Fixed


Status:Fixed» Closed (fixed)

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