I'm porting a code from a template override of com_content
category blog_item into a module.
Everything is all right done, except for one thing I'm struggling with.
I have this code from com_content
tmpl:
<?php echo $this->item->event->beforeDisplayContent; ?>
In the module I tried:
<?php echo $item->event->beforeDisplayContent; ?>
But it is not working and it fires a notice ("Notice: Trying to get property of non-object...")
Any suggestion to have it working into a module?