FAQ Link ändern

Hilfe zu Znuny Problemen aller Art
Locked
Rocky
Znuny newbie
Posts: 74
Joined: 12 Jan 2012, 14:42
Znuny Version: 3.0.11
Real Name: Matthias

FAQ Link ändern

Post by Rocky »

Guten Morgen zusammen,
wenn ich aus einem Ticket antworte und dann einen FAQ-Link hinzufüge, muss sich der Kunde im Backend anmelden und das kann er ja nicht. Wie kann ich den Link ändern, dass er auf die FAQ-Seite public.pl zugreift?

Viele Grüße
Rocky
OTRS 3.1.5
VM Windows 2003
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: FAQ Link ändern

Post by jojo »

prüf mal die Sysconfig, eigentlich geht der Link per default auf die public.pl
"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
Rocky
Znuny newbie
Posts: 74
Joined: 12 Jan 2012, 14:42
Znuny Version: 3.0.11
Real Name: Matthias

Re: FAQ Link ändern

Post by Rocky »

Hab jetzt mal nichts gefunden, schaut meiner Meinung nach eigentlich ok aus. Aber du kannst mir bestimmt sagen, wo ich genau schauen soll?
OTRS 3.1.5
VM Windows 2003
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: FAQ Link ändern

Post by jojo »

einstellen kann man da nix,hab gerade nochmal geschaut. Ist bei Euch die public.pl gegebenenfalls deaktiviert?
"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
Rocky
Znuny newbie
Posts: 74
Joined: 12 Jan 2012, 14:42
Znuny Version: 3.0.11
Real Name: Matthias

Re: FAQ Link ändern

Post by Rocky »

Deaktiviert habe ich nichts, ich komm auch ganz normal über meine internedomaine/otrs/public.pl auch auf mein FAQ-System.
OTRS 3.1.5
VM Windows 2003
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: FAQ Link ändern

Post by jojo »

dann hat es vielleicht jemand im Code angepasst...
"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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: FAQ Link ändern

Post by jojo »

zeig mal bitte die 10 Zeilen über und unter der Zeile

Code: Select all

  $FAQData{Publiclink} = $HTTPType . '://' . $FQDN . $Baselink
aus der Datei Kernel/Modules/AgentFAQZoom.pm
"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
Rocky
Znuny newbie
Posts: 74
Joined: 12 Jan 2012, 14:42
Znuny Version: 3.0.11
Real Name: Matthias

Re: FAQ Link ändern

Post by Rocky »

# check if FAQ article is public
if ( $FAQData{StateTypeID} == $PublicStateType->{StateID} ) {

my $HTTPType = $Self->{ConfigObject}->Get('HttpType');
my $FQDN = $Self->{ConfigObject}->Get('FQDN');
my $Baselink = $Self->{LayoutObject}->{Baselink};

# rewrite handle
$Baselink
=~ s{ index[.]pl [?] }{public.pl?}gxms;

$FAQData{Publiclink} = $HTTPType . '://' . $FQDN . $Baselink
. "Action=PublicFAQZoom;ItemID=$FAQData{ItemID}";

# show "Insert Link" button
if ( $TicketComposeConfig->{ShowInsertLinkButton} ) {
$Self->{LayoutObject}->Block(
Name => 'InsertLink',
Data => {},
);
$ShowOrBlock = 1;
}
OTRS 3.1.5
VM Windows 2003
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: FAQ Link ändern

Post by jojo »

sieht korrekt aus, also sollte auch der public.pl Link geschrieben werden und nicht customer.pl
"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
Locked