I'm having some issues with checking if a module is displayed on the current page.
I tried out different approaches with
JModuleHelper methods, eg
isEnabled, but it only works with module types not module "instances".
I also tried fetching the module by name or position, but objects returned do not contain any information about what menu items are assigned to this module.
I also considered fetching the menu item object or the article object (I'm checking this from a article layout override ~ com_content) but couldn't find any information that could help me with this.
Simply put: I need to check if a module is currently displayed on an article view.
I hope someone could help me with this. Thanks!