Hi,
For some reason meta tags are not showing in in content types that use panels.
I've added a patch I created that solved the problem. In some cases $langcode is empty which results meta tags not showing in . When $langcode is set everything works fine.
the call is comming from metatag_entity_view($entity, $entity_name, 'full', NULL); in metatag.module
Eyal

CommentFileSizeAuthor
metatag_fix.patch827 byteseyalev
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

The problem stems from the face that Panels does not support multiple languages, so the $langcode disappears. This is a problem that IMHO needs to be fixed in Panels first.

Summit’s picture

Hi, Isn't this than a related issue through Ctools: http://drupal.org/node/1301908
Greetings, Martijn

DamienMcKenna’s picture

Good find. Yes, please help review that issue.

DamienMcKenna’s picture

Issue summary: View changes

Added where the call is coming from

DamienMcKenna’s picture

Component: Code » Panels integration
Issue summary: View changes
DamienMcKenna’s picture

Status: Active » Needs review

Thanks for the patch.

FYI please change the issue status to "Needs review" when you upload a patch, that tells the maintainer that you have a potential solution available, and triggers the automated tests to help check whether the patch will work.

DamienMcKenna’s picture

Version: 7.x-1.0-beta7 » 7.x-1.x-dev

Also, there were other problems with beta7 that caused multilingual tags to not work, please test the latest -dev release to see if the problem is resolved. Thanks.

Status: Needs review » Needs work

The last submitted patch, metatag_fix.patch, failed testing.

DamienMcKenna’s picture

DamienMcKenna’s picture

Please test the latest -dev release and #2178411: Metatags not diplaying when node content is empty, that might cover this issue.

DamienMcKenna’s picture

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

Status: Postponed (maintainer needs more info) » Closed (duplicate)

This should be fixed in the latest -dev release, which will be the 1.0-rc1 release soon.