Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With code I write in Contemplate, how can I know which View or Block the node is currently being displayed within?
[I can't use arg(0)/arg(1) as those apply to the whole page and do not have different values for the different Views/Blocks on the page.]
Why do I want this? Because I need to have (essentially) different types of teasers (of the same nodes) at different places on the screen (i.e., in different Blocks created by different Views).
Thanks for your help!