I would really like to use this module with my nodes that are overridden by panels in Drupal 6, Panels 3 RC1

My panel page title in the header needs to be different to the actual panel title and I would like to get this working. I saw that there was a patch released in http://drupal.org/node/276342 but it was for a previous version of panels still using delegator. I would like to ask if someone can assist by updating this to work with the current version of panels.

Thanks
Gregg

Comments

nicholasThompson’s picture

Status: Active » Closed (duplicate)

Duplicate #276342: Panels Integration for 5.x

Please keep conversations in the panel thread - otherwise things get messy ;-)

Panels integration is definately on the To Do... The problem is "Scope" or "Context"... Eg, is this panel view overriding the user profile? a term page? a frontpage? Without this I do not know what objectst to pass to tokens and therefore token cannot do its job properly.

I also need a little time too ;-)

jenlampton’s picture

Status: Closed (duplicate) » Active

hey nicholasThompson,

I think this is a different issue than the 5.x version because in Panels 3 there *is* context available to work with. The 5.x thread presents an entirely different set of problems. ;-)

This is a critical issue for me so I'm going to work through it in a preprocess function for now, but I'll post what I do here, maybe it'll help save you some of that time you need so much :-)

Jen

nicholasThompson’s picture

That'd be appreciated - I'll see what I can find out about it...

locomo’s picture

@jenlampton

hey.. any success here? i'd love to hear your solution as this is something i'd really like to get working as well

thanks!

iaminawe’s picture

I am still battling with this issue with no resolve yet.

Look forward to helping to test.

Thanks
Gregg

kevinquillen’s picture

Hey guys,

We have a panel that controls our clients homepage, but, if you look at the code in page_title.module:

// If frontpage, then use the frontpage pattern and set the title.
    if (drupal_is_front_page()) {
      // Get the frontpage pattern
      $page_title_pattern = variable_get('page_title_front', '[site-name] | [site-slogan]');

      // If the frontpage pattern is empty, fallback to the default.
      if (empty($page_title_pattern)) {
        $page_title_pattern = variable_get('page_title_default', '[page-title] | [site-slogan]');
      }

      // Append the pattern for pages with a pager on them
      $page_title_pattern .= isset($_REQUEST['page']) ? variable_get('page_title_pager_pattern', '') : '';

      // Applu the token patterns using the one-level replacer (frontpage is only "global" scope)
      $title = token_replace($page_title_pattern);
    } else

This won't change the frontpage at all, only set a pattern or get the default, it won't look at what the user entered. Essentially what I wound up doing was copying that function into template.php, renaming it, and removing the frontpage specific code. Then, in page.tpl.php to get around the Panels issue:

   if ($is_front) { 
	$head_title = themename_page_title_page_get_title();
   }
  <title><?php print $head_title; ?></title>

This did the trick for me for solving both custom front page title and panels title override.

sittard’s picture

This thread has been open for a while now! Can some one please provide an update on the latest development status of this issue. From what I can tell Panels 3 and page title are incompatible. In both 6.x-2.3 release and the latest development snapshot.

Thanks.

sittard’s picture

I just found this thread on the Panels Issue queue which might help others:

http://drupal.org/node/749472

baff’s picture

subscribe

DamienMcKenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

The D6 branch is no longer supported so no new features will be added.