I have a problem by using PAGE TITLE with sites made by panels. My problem:

under "website information" I left name of website blank
for panel sides I added the requested page title but nothing appears in title tag

For non-panel sites everything is fine.

What is wrong?

:o
mauk

Comments

nicholasthompson’s picture

Status: Active » Postponed (maintainer needs more info)

under "website information" I left name of website blank
for panel sides I added the requested page title but nothing appears in title tag

Huh?

Whats Website Information? Are you referring to the admin/settings/site-information page?

What Panel "Sides"?

I need a bit more of an explanation about this before I can begin to diagnose where the problem is.

In any case, Page Title DOES work with Panels - its in use on http://www.pponline.co.uk/ which EXTENSIVELY uses the Panels and Page Title modules.

mauk’s picture

Version: 5.x-2.x-dev » 5.x-1.1

Hi,

yes, I refer to admin/settings/site-information page. I left name of website blank because I do want to show this in header of website and title tag of
all pages.

I mean by panel sides, pages which are consisting of various panels.

I have settled this matter by adding now the name of website to site-information site and deleted in template.php to show name of website. So name
of website is now shown in title tag.

:o
mauk

nicholasthompson’s picture

I still dont understand what the problem is... Do you not want the Site Name to show in the Page Title? If so - you could remove the token from the pattern in the configuration...

nicholasthompson’s picture

Status: Postponed (maintainer needs more info) » Fixed

Assuming fixed - no reply for a month.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

tbisciglia’s picture

Status: Closed (fixed) » Active

I think I can make this issue make sense, as I had the same issue, I believe.

The problem has nothing to do with site information. The problem is that the Page Title module does not properly read the title of content created in the Pages (that is, panel pages) module. In those cases, the default of [page-title] | [site-name] is used, and it displays as:

| My Website

I saw some other posts that supposedly have patches for this module, but they don't seem to match my version (6.x-2.3). If there is a good patch out there, could someone respond and post? Thanks.

ayalon’s picture

Title: PAGE TITLE with PANELS - does not work » Page title with PANELS - does not work
Version: 5.x-1.1 » 6.x-2.x-dev

I have the same problem and I use the following fix:


  if (is_object($panel_page)){
    //$vars['title'] = '';
    $vars['head_title'] = $vars['title'];
  }
  
  
  //Page title fix for panels
  //http://drupal.org/node/370856
  if(arg(0) == 'node') { 
    $vars['head_title'] = page_title_page_get_title();
  }

Add these lines to your customtheme_preprocess_page() function, and everything is fine.

EvanDonovan’s picture

Title: Page title with PANELS - does not work » [page-title] token empty for Panels pages

I am still experiencing this issue as well on the latest version of the Page Title module for 6.x. It appears that the [page-title] token is still not getting set for Panels pages, at least when the panel's title is set to "Manually set".

In my case, I am using the following code in THEMENAME_preprocess_page:

  if($vars['show_blocks']) {
    $vars['main_content_classes'] = 'main-content';
  }
  else {
    $vars['main_content_classes'] = 'panels-page';
    $vars['head_title'] = $vars['title'] . ' | UrbanMinistry.org: Podcasts, MP3s, Grants, Jobs, Books on Christian Social Justice';
  }

I can do this since all panels pages on my site have blocks disabled. I don't think checking if(is_object($panels_page)) would actually work since that variable wouldn't be set in the preprocess function's scope. Also, the latter part of the code ayalon posted is not good since Page Title can set page titles for things besides nodes.

Does anyone know why [page-title] is not available in the Panels context? It's supposed to be a global token...

crea’s picture