Hello.

I have trouble to generate metatags (7.x-1.4) in pages (variant) created by PE (dev). The PE UI (metatags in the variant) doesn't seems to do anything. I created some 'variants' of pages white PE, and in none of these 'variants' metatags are generated. I installed a brand new Drupal site to check if it was a Theme thing, but no. Only the metatags you can gererate within the 'basic', 'frontpage' ore the 'article' page work. Is this a bug?

Thanks for the effort, great module!

Comments

DamienMcKenna’s picture

Issue tags: -Metatags, -variants

Seeing as I'm maintainer of both modules, I should probably fix this =)

DamienMcKenna’s picture

Status: Needs review » Active

You should only set the issue status to "needs review" when there's a patch that needs to be reviewed by someone.

juzzuu’s picture

Sorry, my mistake.

I encountered a similar problem with Rules and page variants made with PE. It's possible to make a rule, that after a node has been unpublished by Scheduler, deletes that node.
For page variants made with PE this is not possible because I cant choose a 'variant' in Rules! It seems that pages made with PE are 'special'! I don't know if this is helpfull?

DamienMcKenna’s picture

Assigned: juzzuu » Unassigned
DamienMcKenna’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Issue tags: +panels_everywhere
hacioglu’s picture

Any news on this?

gejo’s picture

Here's my workaround while this is being fixed.

In template.php:

function at_panels_everywhere_preprocess_html(&$vars) {

	// adding metatags to the home page
	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');
	}  

	// 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');
	}

}
DamienMcKenna’s picture

Status: Active » Closed (duplicate)
Parent issue: » #2137877: Metatags on Panels Everywhere Page Templates are not resprected

As it turns out, there was already an issue open for this: #2137877: Metatags on Panels Everywhere Page Templates are not resprected Let's work on the fix over there.