ich versuche gerade im Kundeninterface ein Kundenabhängiges Logo einzubauen.
Ich habe dazu bei Framework -> Frontend::Customer die CustomerLogo URL (skins/Customer/default/img/logo.png) durch logo.pl ersetzt.
Die logo.pl habe ich unter /opt/otrs/bin/cgi-bin abgelegt. Testhalber steht im Skript folgendes:
Code: Select all
#!/usr/bin/perl
print "Content-type:text/html\r\n\r\n";
print '<html>';
print '<body>';
#print $ENV{'REMOTE_USER'};
print '<img src="https://x.x.x.x:8443/logo.png">';
print '</body>';
print '</html>';
exit (0);
Wenn ich das Perl Skript von Hand aufrufe zeigt er das Bild. Wenn ich die Login Maske aufrufe sehe ich:
Code: Select all
<style type="text/css">
#Header #Logo {
background-image: url(/otrs-web/logo.pl);
top: 2px;
right: 25px;
width: 149px;
height: 44px;
}
</style>
Jan