(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

sherakama’s picture

Thanks for all the posts and bug reports. I am happy to accept patches if you are willing to post them.

Cheers,

sherakama’s picture

Issue summary: View changes
Status: Active » Needs review

This (has been / will be) fixed in the 2.x version.

sherakama’s picture

Status: Needs review » Fixed

New alter hook should solve this in the latest 2.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.