Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
(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 CreditAttribution: 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 CreditAttribution: sherakama commentedThis (has been / will be) fixed in the 2.x version.
Comment #3
sherakama CreditAttribution: sherakama as a volunteer commentedNew alter hook should solve this in the latest 2.x branch.