[SOLVED] Custom image as header
Moderator: crythias
[SOLVED] Custom image as header
Hi,
i saw different otrs installation on internet where the customer portal is customized with a custom image instead the custom written that could be set in Frontend:Customer:CustomerHeadline.
I suppose i should install a new skin or install a graphic template, am i right?
Thanks,
Fabio
i saw different otrs installation on internet where the customer portal is customized with a custom image instead the custom written that could be set in Frontend:Customer:CustomerHeadline.
I suppose i should install a new skin or install a graphic template, am i right?
Thanks,
Fabio
Last edited by ruzzetto on 04 May 2017, 15:21, edited 1 time in total.
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Custom image as header
Search the SysConfig for logo
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Custom image as header
@root i've already changed customer logo with a new one and changed header with "My support Portal..." i don't want a type but a unique image set as header and logo....
thanks
thanks
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Custom image as header
Got it, then try to copy Kernel/Output/HTML/Templates/Standard/CustomerHeader.tt to Custom/Kernel/Output/HTML/Templates/Standard/CustomerHeader.tt and play around with this.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Custom image as header
ok, thansk @root. The file you suggested me has this code:
....i tried to insert image link into "a href".....i suppose it's there but does not work
Code: Select all
[%- INCLUDE "HTTPHeaders.tt" -%]
<!DOCTYPE html>
<html>
[% InsertTemplate("Copyright.tt") %]
[% InsertTemplate("CustomerHTMLHead.tt") %]
<body class="NoJavaScript [% Data.BodyClass | html %]">
<!-- start CI layout -->
<div id="Header">
[% RenderBlockStart("HeaderLogo") %]
<div id="Logo"></div>
[% RenderBlockEnd("HeaderLogo") %]
<h1 class="CompanyName">
<a href="#">[% Config("CustomerHeadline") %]</a>
</h1>
[% RenderBlockStart("DebugRTLButton") %]
<button onclick="Core.Debug.SimulateRTLPage();" type="button">Simulate RTL</button>
[% RenderBlockEnd("DebugRTLButton") %]
</div>
<!-- end CI layout -->
<!-- end header -->
Re: Custom image as header
my fault , with <img src> i fixed. Trying to get image responsive now. CustomerHeader.tt just modify layout once the user is logged-in, but the image is not shown on customer.pl login page.
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Custom image as header
Must be something wrong, the CustomerHeader.tt is included in the CustomerLogin (see Kernel/Output/HTML/Templates/Standard/CustomerLogin.tt).
Please show your changed template.
Please show your changed template.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Custom image as header
@root you're right now i can see the image in login page too but there's something strange: i'm changing several images and i'm noticing images in login page are in the cache, altough i cleared the browser cache
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Custom image as header
Did you try clearing the OTRS cache?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: Custom image as header
@root is there a way to remove the thin framework around the image? my code is:
when the page loads it looks like
Code: Select all
[%- INCLUDE "HTTPHeaders.tt" -%]
<!DOCTYPE html>
<html>
[% InsertTemplate("Copyright.tt") %]
[% InsertTemplate("CustomerHTMLHead.tt") %]
<body class="NoJavaScript [% Data.BodyClass | html %]">
<!-- start CI layout -->
<div id="Header">
[% RenderBlockStart("HeaderLogo") %]
<div id="Logo"></div>
[% RenderBlockEnd("HeaderLogo") %]
<h1 class="CompanyName">
<img src="myimage.png" style='width:100%; height:100%'/>[% Config("CustomerHeadline") %]
</h1>
[% RenderBlockStart("DebugRTLButton") %]
<button onclick="Core.Debug.SimulateRTLPage();" type="button">Simulate RTL</button>
[% RenderBlockEnd("DebugRTLButton") %]
</div>
<!-- end CI layout -->
<!-- end header -->
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 3965
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: Custom image as header
What's the location of myimage.png in the filesystem?
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Re: Custom image as header
/opt/otrs/var/httpd/htdocs/skins/Customer/default/img/myimage.png
but to let users to view it i used:
/otrs-web/skins/Customer/default/img/myimage.png
thanks
but to let users to view it i used:
/otrs-web/skins/Customer/default/img/myimage.png
thanks