Panels 2 - Context Arguments - Title Getting Title for the node context does not show

mdenson - July 7, 2008 - 18:40
Project:Panels
Version:5.x-2.0-beta5
Component:Panel pages
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

When the panel page is displayed with a node that is from a argument the title does not show in the Browser title bar.

When creating the Node ID argument the Title field was set to "%node" and the keyword field was set to node. When the panel page was displayed the title set here does not affect the title bar.

I did some investigation and found that the _panels_page_get_title function in panel_page.module returns the $panel_page->display->title even though it is empty. The test on line 521 is :

elseif (<strong>isset</strong>($panel_page->display->title)) {

and should be :

elseif (<strong>!empty</strong>($panel_page->display->title)) {

If you have more questiongs please email me.

Cheers,
Mattthew Denson

#1

mdenson - July 7, 2008 - 18:42

Sorry haven't posted an issue before. I added strong tags in the code line. The strong tags shouldn't be there.

#2

mdenson - July 7, 2008 - 18:50

See also
http://drupal.org/node/268318

Found this later sorry for the noise.

#3

sdboyer - July 8, 2008 - 06:17
Status:needs review» duplicate

No worries. What's REALLY funny is, #271325: Empty title always returned when using displays :)

 
 

Drupal is a registered trademark of Dries Buytaert.