Active
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2013 at 05:06 UTC
Updated:
5 Sep 2015 at 10:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damienmckennaThis should do it.
Comment #2
damienmckennaCommitted.
Comment #3
slayne40 commentedHy,
I have a node with Entity Reference field.
During page load, the function metatag_entity_view is called once.
Problem on call : entity ID is not the node ID of the page but a referenced node ID... function end and the metatags are empty !
It is necessary that the function is called more than once.
If I delete the patch metatag work properly.
The solution may be to move the patch after the line :
or maybe not ?
Comment #4
damienmckennaHow's about this?
Comment #5
damienmckennaCommitted.
Comment #6
damienmckennaNow that Metatag v7.x-1.0-beta5 is out am closing this to keep the issue queue clean.
Comment #7
IRuslan commentedI'm still encounter that issue in last release version.
I'm using CTools, first call comes from ctools_node_content_render_node() plugin, which invoke full entity_view.
And second comes from metatag_ctools_render_alter().
And usage of $i_will_say_this_only_once does not help because metatag_entity_view() called second tiome with $force flag.
What's the reason to have that flag and use it in metatag_ctools_render_alter()?
Comment #8
raphael apard commentedWith a node with comment, _metatag_entity_is_page('comment', $comment) will return TRUE and $i_will_say_this_only_once will be set to true, and this will never triggered for node.