This is a similar issue to, but I am not using page_title.

I have a Drupal 7, Panels 7.x-3.3, cTools 7.x-1.2 site. When I have metatag_panels enabled, and have the variant config to enable metatags configuration. It looks like the [current-page:title] token is always empty when I want to use it anywhere in metatags. Custom text works, and other [current-page] tokens work. The title is being propagated properly through the theme system (eg, it is correct in my region template). In my instance, I am using a manually set title, but changing this doesn't seem to matter.

Not sure what is wrong here.

#19 metatag-n1918706-18.patch719 byteszekvyrin
PASSED: [[SimpleTest]]: [MySQL] 73 pass(es).
[ View ]


Status:Active» Postponed (maintainer needs more info)

How is the page title configured on the variant itself?

Status:Postponed (maintainer needs more info)» Active

Title type == Manually set

Title == %substitution

where %substitution is defined by my ctools context. I need to see if all of my variants are using substitutions.

At a guess I wonder if this is purely a page execution problem? The [current-page:title] value might not be set until Panels runs, maybe Metatag is executing first so it doesn't see the values being set by Panels later on? Try bumping the 'weight' value of metatag in the {system} table to something higher than Panels' value, see if that helps.

Changing the weight didn't help, even after a few cache clears.

I noticed that og:title doesn't appear at all when I use the Panels node page override.

I also noticed that if I override the Global Page Title, that the panel variant title will override this.

I will try to spin up a test site so I can get some debug in Metatags, Page Manager, and Panels to see what is really going on.

Component:Code» Documentation
Category:bug» task

I think this is ultimately by design - if you want to assign the title using the Metatag section you need to leave the Page Title set to "no title".

This needs to be documented.

new753 bytes
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch metatag_panels-page_title-1918706-6.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

I know this module is now deprecated, but I ran into this issue as well, and upgrading to metatag 7.x-1.0-beta6+ was not an option. Here's a patch that fixes this problem for those of you in the same situation.

Project:Meta tags: Panels» Metatag
Version:7.x-1.0-beta1» 7.x-1.x-dev
Component:Documentation» Code

The module is not deprecated, the module has been merged with metatag module. This issue now belongs there.

Status:Active» Needs review

Better status, I think.

Also following.

Status:Needs review» Needs work

The last submitted patch, metatag_panels-page_title-1918706-6.patch, failed testing.

Title:Blank Titles when using [current-page:title]Blank titles when using [current-page:title] on Panels pages
Status:Needs work» Needs review
new747 bytes
PASSED: [[SimpleTest]]: [MySQL] 73 pass(es).
[ View ]

This fixes a) the file path, b) using $info['title'] instead of $metatags['title'].

Category:task» bug

This is more of a bug than a task.

new725 bytes
PASSED: [[SimpleTest]]: [MySQL] 73 pass(es).
[ View ]

How's about this instead? Just set the page title if one was assigned.

Status:Needs review» Reviewed & tested by the community

Seems okay with me!

I set up a panel that has a title with substitutions. Metatag is configured to this: [current-page:title] | [site:name]

What happens is that only '| [site:name]' is showing up.

@beowulf1416: What is the panel's title set to? Did you try the patch?

Just read the reply now. The panel's title is set to 'No Title'. I will try the patch and feedback later. Thanks.

Didn't work for me, gave an error about it being an array, even using the value in the array didn't work.

I changed it to drupal_set_title($info['title']); and it worked as expected.

I'm not 100% sure that this is metatag_panel's issue or panels should do it earlier.

My issue is pretty similar but the proposed solutions above don't resolve it. My [current-page:title] is actually filled from somewhere else, but the fact remains the same:

[current-page:title] is not updated to use the Title set on Panel (either manually or "from pane" or maybe to unset the title).

Using $info['title'] instead of $metatag['title'] and #12 patchs works for me.
$metatag['title']['value'] contains the pattern I used on metatags (for example : "[current-page:title] | [site:name]").

Also, I think Patch #10 might be wrong because title could have been set elsewhere earlier. For example when overriding a taxonomy term page, drupal_get_title will return term's name, so it won't be empty and the patch will not .

Issue summary:View changes
new719 bytes
PASSED: [[SimpleTest]]: [MySQL] 73 pass(es).
[ View ]

Sorry for the wrong patch number. I was expecting to attach it to #18.
The patch is using $info instead of $metatag.

Works for me in both beta7 & dev versions.

Status:Reviewed & tested by the community» Needs review

The patch in #19 appears to be working fine for me.

Component:Code» Panels integration