How to disable long strings shortening to [..]

Moderator: crythias

Post Reply
klsoft
Znuny newbie
Posts: 30
Joined: 25 Jan 2017, 13:59
Znuny Version: 6.0.6
Real Name: Karol
Company: Core Networks

How to disable long strings shortening to [..]

Post by klsoft »

Hi.

In Articles all long links are Cut to some number of signs followed by [..]

how to disable this function? I need full links there.

I've found this

Code: Select all

Max             => 20,       # max 20 chars flowed by [..]
in Layout.pm in Ascii2Html settings

but changing this doesn't change anything in displaying

(or maybe I need somehow recreate some cache or something like this? )
klsoft
Znuny newbie
Posts: 30
Joined: 25 Jan 2017, 13:59
Znuny Version: 6.0.6
Real Name: Karol
Company: Core Networks

Re: How to disable long strings shortening to [..]

Post by klsoft »

Well i was hoping for more help :)

Solution is here in file:
Kernel/Output/HTML/FilterText/URL.pm

There is function to shorten URLs, and changing number of characters there solved the issue.

Solved
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to disable long strings shortening to [..]

Post by wurzel »

Hi,

you can parse the code for "truncate" and you'll find a lot. :( (depending on version)
For me, the truncation (for example subject (50)) is very disturbing.


You can change it in git repo directly if you like!

Florian
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply