How to create new field?

Moderator: crythias

Post Reply
Gl3d50N
Znuny newbie
Posts: 29
Joined: 25 Jan 2017, 13:43
Znuny Version: 5.0.10

How to create new field?

Post by Gl3d50N »

Hello guys,

I need create a new field in my Services page, I can create the field inside the view, but, anyone knows what files I need change too?

I found the View (Templates/Standard) and Model (Kernel/Modules), i think it's correct, but i can't find de Controller files, can you help me?
Screenshot_1.png
Thanks for help!!!
You do not have the required permissions to view the files attached to this post.
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: How to create new field?

Post by reneeb »

Kernel/Modules/* are the controllers. There you need to get the parameter from the request and pass that to the methods to manipulate the database. The "model" file is Kernel/System/Service.pm.
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
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: How to create new field?

Post by reneeb »

It should be possible to use ServicePreferences to store additional information on the service.
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
Gl3d50N
Znuny newbie
Posts: 29
Joined: 25 Jan 2017, 13:43
Znuny Version: 5.0.10

Re: How to create new field?

Post by Gl3d50N »

reneeb,

I solved with your tip, thanks a lot man!!!

Att,
Paulo Gledson
Post Reply