Multiple clickable links DynamicField on TicketZoom.

English! place to talk about development, programming and coding
Post Reply
kishormali
Znuny newbie
Posts: 12
Joined: 20 Jan 2020, 12:12
Znuny Version: 6.0
Real Name: Kishor Mali

Multiple clickable links DynamicField on TicketZoom.

Post by kishormali »

Hello All,
I have DynamicField called ContactLinks (Ticket Dynamic Field) where I want to store Links to other websites.
ContactLinks is of type TextArea but I need the URL's stored in that field must be clickable and Show on TicketZoom view.
Show DynamicField on TicketZoom.png
How to add that field here. Or it may be on the top of "Article Overview".
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: Multiple clickable links DynamicField on TicketZoom.

Post by reneeb »

Develop your own DynamicField driver. That could use the TextArea driver module to inherit from. In the sub DisplayValueRender (https://github.com/OTRS/otrs/blob/df3f8 ... ea.pm#L285) you could split the value by newline and render the links.
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
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Multiple clickable links DynamicField on TicketZoom.

Post by RStraub »

You could consider using text, instead of TextArea. In dynamic field of type text you can define a link.

And if your value of the field equals the URI, just enter

Code: Select all

[% Data.Value | uri %]
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Post Reply