(I've not got the code handy right now, but before I forget)
There is a small hack in contextual_view_modes_node_view_alter() intended to prevent recursion - which I understand.
But it exits if rendering ANY node the second time. So on page layouts where there is more than one node being displayed, only the first one works.
I was able to replace that single static flag with an array of nids so I could check if we've altered THIS node already, not just any node.
(code on work machine, I may be able to pull it back, but this explains the issue and A fix)
Comments
Comment #1
sherakama commentedThanks for all the posts and bug reports. I am happy to accept patches if you are willing to post them.
Cheers,
Comment #2
sherakama commentedThis (has been / will be) fixed in the 2.x version.
Comment #3
sherakama commentedNew alter hook should solve this in the latest 2.x branch.