In 1.0.2, the template hook "conversation_message_private_controls" was introduced in the "conversation_message" template. I am trying to make use of it to add a new control.
In my template hook listener I have something like
That template tries to make use of $message.message_id, but it is not available to it. When I manually include the contents of the template in the hook, it can make use of the variable correctly.
It's likely I'm making a stupid mistake, would appreciate a nudge in the right direction.
Thanks.
In my template hook listener I have something like
PHP:
$template->create('conversation_message_control_report', $template->getParams())->render();
That template tries to make use of $message.message_id, but it is not available to it. When I manually include the contents of the template in the hook, it can make use of the variable correctly.
It's likely I'm making a stupid mistake, would appreciate a nudge in the right direction.
Thanks.