Page / Panel Hide Title not working as expected

gnosis - June 7, 2008 - 18:51
Project:Panels
Version:5.x-2.0-beta5
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I've created a panel page for use as my front page. I don't want the "title" to display at all. There are two settings that seem to relate to this: A) Page Title on the Settings tab and B) Panel TItle on the Layout Settings tab. B overrides A. B has a checkbox for Hide Title?, but if checked it just hides B and the title display reverts to A as though nothing was set for B. If I remove A, all settings for B disappear and the title is set to "No Title".

How do I get no title?

Thanks,
G

#1

gnosis - June 7, 2008 - 19:08

I was able to achieve the desired result by setting Page TItle to a [space]. Probably not the ideal solution, but it gets the job done.

#2

gnosis - June 7, 2008 - 21:01

On second glance, setting title to space is no good either. It causes the browser title bar to display " | Sitename".

#3

BrightLoudNoise - June 10, 2008 - 02:56

I'm experiencing the same issue, and confirm the odd behaviour.

#4

bangpound - June 10, 2008 - 14:15

This is probably the same as #263372: hiding the title causing "Preview" to be displayed instead of nothing.. Perhaps that issue doesn't describe all the symptoms of the problem, but these issues probably have a common cause.

#5

ksangeelee - June 12, 2008 - 11:49

A possible solution is to edit 'panels_page/panels_page.module' and look for the line: -

if (!$display->hide_title) {
drupal_set_title(filter_xss_admin(panels_page_get_title($panel_page, 'page', '')));
}

and add an else clause, making the block: -

if (!$display->hide_title) {
drupal_set_title(filter_xss_admin(panels_page_get_title($panel_page, 'page', '')));
} else {
drupal_set_title('');
}

Perhaps the title was set previously? If so, the logic 'if not hide title' can only ever set or replace a title, it can never remove it.

The solution above seems to make it do what's expected, since the page title is correct, and the panel title is invisible.

#6

sun - June 15, 2008 - 03:06

#7

hg2008 - July 7, 2008 - 18:35

thanks, ksangeelee. That solution worked for me.

#8

mkrakowiak - July 29, 2008 - 16:14

This solution does exactly the same thing as gnosis noticed with the space trick: It causes the browser title bar to display " | Sitename".

What you can do, until the fix is in place, is you can use the CSS property display:none (http://www.w3schools.com/css/pr_class_display.asp) to hide it.

EDIT
I forgot I just installed PageTitle module and it took over displaying info in the title bar...
So, the fix works well for me too :)

 
 

Drupal is a registered trademark of Dries Buytaert.