Hi OTRS-developer,
to post internal messages for our agents, I tried to insert a new module called AgentMessageAdd. This messages should be displayed on dashboard in a new widget.
I achieved this goal on our OTRS 4-Instance.
So I did the following:
1.) Registration of the module
File: Message.xml
Directory: /Kernel/Config/Files
With this file I get the entry "Messages" into the menuBar and register the module.
This works!
2.) Configuration of the mask, to post a message
File: MessageConf.xml
Directory: /Kernel/Config/Files
After this, I can configurate the mask via SysConfig.
3.) Functionality
File: AgentMessageAdd.pm
Directory: /Custom/Kernel/Modules
This is a modified copy of file "AgentTicketPhone.pm".
Changes:
package Kernel::Modules::AgentMessageAdd;
...
# get output back
return $LayoutObject->Output(
TemplateFile => 'AgentMessageAdd',
Data => \%Param,
);
4.) Mask
File: AgentMessageAdd.tt
Directory: /Custom/Kernel/Output/HTML/Templates/Standard
This is a copy of file "AgentTicketPhone.tt".
Calling the function "Post new message", the mask opens and a new message could created as a ticket.
But when clicking the Button "Create", nothing else happens.
unfortunately, there's no entry in the OTRS-Logfile or the Apache-Logfile.
I think, the new module uses the Core-Module
File: Ticket.pm
Directory: /Kernel/System
so, I don't have to develope a new Core-Module for this module.
Do I have to register this new module anywhere else?
Is there anything missing?
Thanks in advance.
Sepp