Panelizer pages are not loading the node specific meta tags.

Comments

rcaracaus’s picture

StatusFileSize
new5.98 KB

I am not super familiar with the guts of this module or panelizer. There has to be a better way to do what I did, would love an explanation. But if anyone needs to get this working, it seems like this is working.

Status: Needs review » Needs work

The last submitted patch, panelizer-support-1655410-1.patch, failed testing.

rcaracaus’s picture

StatusFileSize
new866 bytes

Dang, last patch had some code in it from a previous patch. I have made another one from a clean .module file.

papagrande’s picture

StatusFileSize
new1.39 KB

#3 was helpful, but I went in a slightly different direction based on the work in #1363476-36: Panels integration - ensure meta tags work OOTB on entity pages. My patch is a bit hacky, but it's working for my environment where I have Panels, Panelizer, Page Manger, and Display Suite in use with Metatag.

papagrande’s picture

Status: Needs work » Needs review
StatusFileSize
new1.42 KB

#4 caused an error on node edit pages. I rerolled the patch.

damienmckenna’s picture

Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +D7 stable release blocker

Rather than hacking away trying to get this working, and ultimately building work-arounds for an existing work-around in Metatag, the output logic has been re-written thanks to jenlampton and I'm hoping it works better now. Please try the latest -dev release and please let me know if it works as-is, and re-open the issue if it's still not working.

That said, please be aware that right now it doesn't let you override tags for taxonomy term pages due to a core bug, please keep an eye on #1700160: Support taxonomy term pages until taxonomy supports hook_entity_view() for further updates.

damienmckenna’s picture

damienmckenna’s picture

Related and honestly a higher priority: #1708718: Ensure Meta tags work OOTB with Drupal core

I'm going to fix that and then see how to resolve this issue.

01005’s picture

I still can't get this to work. On panelized nodes og:image will be the site logo. I'd be OK with using #4 or #5 but I've tried both using 7.x-1.0-alpha6 of meta tags with the result that looking at a panelized node, the site crashes (Fatal error: Call to undefined function metatag_entity_view() in /home/a01005/public_html/maxflesch/sites/all/modules/metatag/metatag.module on line 799). The newest dev version doesn't solve the problem for me either. Do these patches work for everyone else? Any ideas what I could be missing

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
damienmckenna’s picture

Detag.