Hi,

first of all thanks for this awesome module.

I have following problem with Panels Everywhere. I use PE to render the page templates for the front page. When I have metatag panels submodle active and enable the Metatag Configuration for the Variant that serves the frontpage the metatags that I specify in the PE UI are not taken.

Instead what is shown are the default metatag and the title from the default content feed.

Comments

DamienMcKenna’s picture

Thanks for reporting the bug, I'll definitely work on this soon as PE has become part of my standard toolset.

DamienMcKenna’s picture

Status: Active » Postponed (maintainer needs more info)

I think this should work with the current -dev release, please give it a try and let me know if it's working now.

drupov’s picture

Hi,

using the latest dev of metatags and latest stable of PE it doesn't seem to work.

The metatags settings from the Metatag configuration (admin/config/search/metatags) seem to overwrite those from the PE configuration.

Generally this is acceptable, but if you use more than one variant for the front page it would be good to configure the metatag settings from the PE settings.

drupov’s picture

Hi,

just checked, same case as #3 with latest dev of PE and (of course) latest dev of metatag.

drupov’s picture

Status: Postponed (maintainer needs more info) » Active
DamienMcKenna’s picture

Component: Integration with other module » Panels integration
apex_son’s picture

Hey Damien, wondering if you've made any progress on this.

gejo’s picture

I've ended up doing this programmatically for the front page.
Here's my workaround.

In template.php:

function at_panels_everywhere_preprocess_html(&$vars) {

	if ($vars['is_front'] == 'front'){
		$my_metatag = array(
			'#type' => 'html_tag',
			'#tag' => 'meta',
			'#attributes' => array(
				'name' => 'description',
				'content' => 'Put your description here.',
			)
		);
		drupal_add_html_head($my_metatag, 'description');
	}  

}

If you want to add metatags per path:

	$path = current_path();
	if($path == 'user' || $path == 'user/password'){
		$my_metatag_robots = array(
			'#type' => 'html_tag',
			'#tag' => 'meta',
			'#attributes' => array(
				'name' => 'robots',
				'content' => 'noindex',
			)
		);
		drupal_add_html_head($my_metatag_robots, 'robots');
	}