Need to have a custom field so as a hyperlink

Moderator: crythias

Locked
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Need to have a custom field so as a hyperlink

Post by tnieman »

We have added several fields to the Customer Company object. A couple of them are intended for Hyperlinks to customer websites. The addresses are showing, but you can't click them to get to the website (see the attached screenshot).

Do I need to change the database field type

Also, when the url is very long, the system is putting an ellipsis ([...]) in place of part of the url. We want it to display all of it. Any ideas?
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Need to have a custom field so as a hyperlink

Post by crythias »

This might help, if you follow how to apply it to CustomerCompany viewtopic.php?f=60&t=7787
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Need to have a custom field so as a hyperlink

Post by tnieman »

That link did help, but it is not working properly.

I have the line below in my Config.pm file

[ 'CustomerCompanyProdURL', 'Prod URL', 'prod_url', 1, 0, 'var', '$Data{"prod_url"}', 0, "_blank" ],

The prod_url has https://ourweb.com (this is not the real address) as the value. It looks fine the customer sidebar of a ticket. Hovering the field shows the proper address, but when clicking I get a clone of the Ticket page.

I also put http://www.google.com and got the same results.

I can paste the link into the address box of a browser and it finds the site.


Tom
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Need to have a custom field so as a hyperlink

Post by jojo »

you need to use:

[ 'CustomerCompanyProdURL', 'Prod URL', 'prod_url', 1, 0, 'var', '$Data{"CustomerCompanyProdURL"}', 0, "_blank" ],
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
tnieman
Znuny advanced
Posts: 103
Joined: 14 Nov 2012, 21:59
Znuny Version: 3.1.6
Real Name: Tom Nieman
Company: WorkForce Software

Re: Need to have a custom field so as a hyperlink

Post by tnieman »

That did it, THANKS!

Tom
Locked