[SOLVED] Insert image in CustomerLogin.dtl

Moderator: crythias

Locked
pgoel
Znuny newbie
Posts: 8
Joined: 08 Nov 2013, 19:04
Znuny Version: 3.2.11
Real Name: Prateek

[SOLVED] Insert image in CustomerLogin.dtl

Post by pgoel »

Is it possible to insert this image in the background of the customer login page:

http://fibertown.com/images/site_images ... own-bg.jpg

I believe the modification has to be made in on of the following files:

/otrs/Kernel/Output/HTML/Standard/CustomerLogin.dtl

or

/otrs/var/httpd/htdocsCust/skins/default/css/CoreLogin.css

I have the file in the /skins/Customer/default/img folder as well. I can implement in any way (as a reference to the URL or the local image path)

Can someone give me the code to add, where to add and what changes if any have to be made in the sysconfig. Thanks
Last edited by pgoel on 19 Dec 2013, 17:18, edited 1 time in total.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Insert image in CustomerLogin.dtl

Post by crythias »

best bet: work from the rendered page with a browser that can handle editing the rendered source in the browser (like chrome/inspect element) and determine how the image should look on your page.
Remove images where applicable through that, use html <img> markup or css background url (if you don't know these terms, look up an HTML tutorial) then, when you have it like you want it, ask here again (or if you're adventurous, look at the .dtl that has the code you've removed/changed ... it's how we'd explain it, too.)
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
pgoel
Znuny newbie
Posts: 8
Joined: 08 Nov 2013, 19:04
Znuny Version: 3.2.11
Real Name: Prateek

Re: Insert image in CustomerLogin.dtl

Post by pgoel »

Found the answer and it's actually very easy: just modify /opt/otrs/var/httpd/htdocs/skins/Customer/default/css add the image in the body
make sure you have the image saved in teh /opt/otrs/var/httpd/htdocs/skins/Customer/default/img

body {
background: url(../img/image.png);
}

I'm sure this is not update proof but does the job (The image will be in the background throughout the customer interface so make sure it's not something dark)
Locked