I am experiencing an odd and baffling problem which seems as far as I can tell to be panels related:
I am trying to get the 'open graph meta tags' module to work on my site so that the facebook like button works properly for individual nodes...
I have overridden my nodes with panels and they do not show any of the open graph meta tags in head whereas they do show when the panels are disabled
Any light that can be shed would be very much appreciated!
Comments
Comment #1
merlinofchaos commentedNot knowing anything about that module, I can only guess that those metatags are added via hook_nodeapi of some flavor. That hook will only be run if the node: content pane is added to the page. Do you have this pane added?
Comment #2
leovw commentedHi Merlin - You are correct I haven't added node:content pane to the panel as the page instead currently comprises of a collection of views... Is there a way to add it but not show it that causes minimal performance degradation?
This is the function within the module which must be causing the problem:
Thanks for you help
Comment #3
merlinofchaos commentedSadly no, and there probably should be another way to do this, but there isn't. You could probably implement hook_ctools_render_alter() and do a node_invoke('view') on the node there, but that's kind of a pain in the butt since you've got to dig the node out of the context. It's not THAT hard, mind you.
Comment #4
Letharion commentedAs has been cleared, hook_nodeapi doesn't get called unless you have the content in the pane. I posted to another issue a simple ctools plugin to specifically workaround this, but I don't remember which issue it is at the moment.
Comment #5
bradjones1The issue mentioned by Letharion above is #1117156: How do I get og:image working with Panels?