How to add a picture for the customer logo & name in Text

Moderator: crythias

Locked
usman
Znuny newbie
Posts: 33
Joined: 02 Aug 2010, 12:13
Znuny Version: 2.1.4 on Centos

How to add a picture for the customer logo & name in Text

Post by usman »

Hi,

When a customer logs on with his/her account credentials on OTRS (http://localhost/otrs/CUSTOMER.PL) I want to add a logo and text with their company name on the dashboard when they login.

Is there a way to do that....if so how?

Thanks
Using OTRS 3.0.1 on CentOS 5
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: How to add a picture for the customer logo & name in Tex

Post by Daniel Obee »

With a corresponding entry in your db (containing the logo whereabouts), a logo repository and a little fiddling around with the .dtls this should be feasible. Sounds like work though...

Greets,
Daniel
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add a picture for the customer logo & name in Tex

Post by crythias »

Hopefully, in your own theme, CustomerHeader.dtl

Around Line 43:

Code: Select all

    <td width="120" class="header"><img border="0" src="$Config{"Frontend::ImagePath"}##yourfilename##" alt="##Something Descriptive##" />  </td>
    <td class="header"> <a href="" class="headeritem">##Company Name##<br />Help Desk/Support</a> </td>
Where ##yourfile## can sit safely in otrs/var/httpd/htdocs/images/Standard

In case anyone asks, "NO, you don't use ## in anything. I'm merely using them to show you what to change."
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add a picture for the customer logo & name in Tex

Post by crythias »

BTW, to replace the logo that appears on print:

It's called PDF::LogoFile in Core::PDF
PDF::LogoFile:
File for the logo in the page header (gif|jpg|png, 700 x 100 pixel).
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
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: How to add a picture for the customer logo & name in Tex

Post by Daniel Obee »

That's how to add your own logo. I thought he question was about how to add the customer's logo...

Greets
Daniel
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to add a picture for the customer logo & name in Tex

Post by crythias »

Dang it, you're right, ...
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
davidbann
Znuny newbie
Posts: 92
Joined: 21 Jun 2010, 22:51
Znuny Version: 6.5.2
Real Name: David Bann
Location: South Africa

Re: How to add a picture for the customer logo & name in Tex

Post by davidbann »

I haven't tried this yet, but it looks like you can achieve this by using multiple alias sub-domains.

In other words, you need to create one alias sub-domain for each client. All of these sub-domains point to the same OTRS installation.

So you might have http://client1support.domain.com and http://client2support.domain.com

You then create a new theme for each client as directed at http://doc.otrs.org/2.4/en/html/c2079.html - lets say you call them CLIENT1 and CLIENT2

Go to SysConfig Core section and enable and modify the DefaultTheme::HostBased: option - For each client you would have an entry like these:
Key = client1support\.domain\.com, content = CLIENT1
Key = client2support\.domain\.com, content = CLIENT2

Once this is done, then the default theme will be selected based on the URL that is entered.

I hope this helps - someone please correct me if my understanding of this functionality is incorrect?
Locked