Creating own modules

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Creating own modules

Post by aph »

Hi,

I would like to create my own module. I basically tried to follow https://otrs.github.io/doc/manual/devel ... end-module

I took the AgentTicketActionCommon as the basis. And did following steps

1) Created a module registration using the Default Config File from the above link
2) I copied the file ..\Kernel\Modules\AgentTicketActionCommon.pm for the Frontend Module and changed:

Code: Select all

package Kernel::Modules::AgentTicketActionCommon;
to

Code: Select all

package Kernel::Modules::AgentTicketCustom;
3) I also created a dtl file and a language file as described in the documentation linked above

At this point I got stuck. I cannot find the Core Module that needs to be copied and edited accordingly. While file is to be used?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Creating own modules

Post by reneeb »

What do you want to do?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Creating own modules

Post by aph »

I want to add a button to menu module and define an action / link. On clicking this custom button, a dialog similar to 'Free fields' dialog should popup. The popup should contain a dynamic field (drop down list) which the user can set and a process is started based on generic agent.

I don't want to simply add dynamic fields in the free fields dialog since it already contains many fields. So basically I want to create a custom 'start process' button. How do I go about achieving this?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked