Different Logo and Header for any Company
Moderator: crythias
Different Logo and Header for any Company
Hi
After some search on forum,I have found that, it is possible change header and Logo in customer front end. I have changed "CustomerHeadline" and "CustomerLogo" in section "Config Settings in Framework -> Frontend::Customer" . So Header and Logo has been changed.but this change is for all customers from all company!!
I want to set different "header" and "Logo" for every company not one for all.
Is there any way to do it??
Thanks in advance
After some search on forum,I have found that, it is possible change header and Logo in customer front end. I have changed "CustomerHeadline" and "CustomerLogo" in section "Config Settings in Framework -> Frontend::Customer" . So Header and Logo has been changed.but this change is for all customers from all company!!
I want to set different "header" and "Logo" for every company not one for all.
Is there any way to do it??
Thanks in advance
Re: Different Logo and Header for any Company
BUMP
This is something I would like to be able to do as well - does anyone have any idea if it is possible please?
Regds
bin
This is something I would like to be able to do as well - does anyone have any idea if it is possible please?
Regds
bin
nima0102 wrote:Hi
After some search on forum,I have found that, it is possible change header and Logo in customer front end. I have changed "CustomerHeadline" and "CustomerLogo" in section "Config Settings in Framework -> Frontend::Customer" . So Header and Logo has been changed.but this change is for all customers from all company!!
I want to set different "header" and "Logo" for every company not one for all.
Is there any way to do it??
Thanks in advance
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Different Logo and Header for any Company
Here's my take on it...
This won't survive upgrades, so maybe your own theme or something?
Edit otrs/Kernel/Output/HTML/Standard/CustomerHeader.dtl
in there you have:
So, maybe something like:
Of note:
Defaults.pm defines:
{'Frontend::ImagePath'} = '<OTRS_CONFIG_Frontend::WebPath>images/Standard/'
{'Frontend::WebPath'} = '/otrs-web/'
Disclaimer: This is off the top of my head, and hasn't been tested, which means it probably won't work without some tweaking.
This won't survive upgrades, so maybe your own theme or something?
Edit otrs/Kernel/Output/HTML/Standard/CustomerHeader.dtl
in there you have:
Code: Select all
<tr>
<td width="120" class="header"> LOGO </td>
<td class="header"> <a href="" class="headeritem">COMPANY NAME</a> </td>
</tr>
Code: Select all
<tr>
<td width="120" class="header"><img src="$Config{"Frontend::ImagePath"}$LQData{"CustomerID"}.jpg" /></td>
<td class="header"> <a href="" class="headeritem">$Text{"CustomerID"}</a> </td>
</tr>
Defaults.pm defines:
{'Frontend::ImagePath'} = '<OTRS_CONFIG_Frontend::WebPath>images/Standard/'
{'Frontend::WebPath'} = '/otrs-web/'
Disclaimer: This is off the top of my head, and hasn't been tested, which means it probably won't work without some tweaking.
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
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
Re: Different Logo and Header for any Company
I'm using this option with Windows and works excellent:
1. Create a new folder "Company" in C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
2. Copy file "CustomerHeader.dtl" from C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Standard to C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
3. Edit the File "CustomerHeader.dtl", look for <div id="header"> and do this:
5. Login otrs index.pl as Admin, enter menu Admin -> SysConfig
6. Edit Config Settings in Framework -> Core::Web
7. Go to Frontend::Themes, clic + button and add the new theme created "Company". Save.
8. Enter menu: Admin -> Customer, clic on username
9. Asign field "Theme" as "Company". Save.
10. The name writen in the field "CustomerID" will be the name of your image plus ".png". If you have jpg or gif, change code in step 3.
11. Be sure to put the image in the path C:\Archivos de programa\OTRS\OTRS\var\httpd\htdocs\skins\Customer\default\img\CustomerID.png
12. Remember that the image name is the "UserCustomerID" you defined in Customer.
5. Login to customer.pl with the username applied.
1. Create a new folder "Company" in C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
2. Copy file "CustomerHeader.dtl" from C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Standard to C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
3. Edit the File "CustomerHeader.dtl", look for <div id="header"> and do this:
Code: Select all
<body class="NoJavaScript $QData{"BodyClass"}">
<!-- start CI layout -->
<div id="Header">
# <h1 class="CompanyName"><a href="#">$Config{"CustomerHeadline"}</a></h1>
<h1 class="CompanyName"><a href="#">SOPORTE A USUARIOS::$Env{"UserCustomerID"} </a></h1>
<tr>
<td width="120" class="header"><img src="$Config{"Frontend::WebPath"}skins/Customer/default/img/$Env{"UserCustomerID"}.png" /></td>
</tr>
<!-- dtl_block:HeaderLogo -->
<div id="Logo"></div>
<!-- dtl_block:HeaderLogo -->
<!-- dtl:block:DebugRTLButton -->
<button onclick="Core.Debug.SimulateRTLPage();" type="button">Simulate RTL</button>
<!-- dtl:block:DebugRTLButton -->
</div>
6. Edit Config Settings in Framework -> Core::Web
7. Go to Frontend::Themes, clic + button and add the new theme created "Company". Save.
8. Enter menu: Admin -> Customer, clic on username
9. Asign field "Theme" as "Company". Save.
10. The name writen in the field "CustomerID" will be the name of your image plus ".png". If you have jpg or gif, change code in step 3.
11. Be sure to put the image in the path C:\Archivos de programa\OTRS\OTRS\var\httpd\htdocs\skins\Customer\default\img\CustomerID.png
12. Remember that the image name is the "UserCustomerID" you defined in Customer.
5. Login to customer.pl with the username applied.
Re: Different Logo and Header for any Company
jamlydm wrote:I'm using this option with Windows and works excellent:
1. Create a new folder "Company" in C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
2. Copy file "CustomerHeader.dtl" from C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Standard to C:\Archivos de programa\OTRS\OTRS\Kernel\Output\HTML\Company
3. Edit the File "CustomerHeader.dtl", look for <div id="header"> and do this:Code: Select all
<body class="NoJavaScript $QData{"BodyClass"}"> <!-- start CI layout --> ...........[/quote] Thankyou jamlydm, your post helped me a lot. Now I want customer's groupID in place of CustomerID. Is there any way to get groupID in"CustomerHeader.dtl". I need this to give logo for a group. So all customers belongs to that group will have the same logo. I'm not expert in perl programming any help would be appreciated. Thanks
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Different Logo and Header for any Company
There's no practical way to do this. A customer can be a member of hundreds of groups.sreejith wrote:Now I want customer's groupID in place of CustomerID.
Groups are for *permissions*. CustomerID is what you want to "give logo for a group".
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
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
Re: Different Logo and Header for any Company
According to out setup, we have, Service Desk -> Partners -> Companies -> Requestors(customer users). There will be more than one partner, and under each partner we have several companies and for each companies several users. Each partner have dedicated queue and group. The tickets created by company users goes into the queue of their Partner. So when a user of a company log into the application we need to display the logo of the Partner under which the company belongs. I hope you are not confusedcrythias wrote: There's no practical way to do this. A customer can be a member of hundreds of groups.
...".

Thanks
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Different Logo and Header for any Company
You need to set the theme for each customer per partner.
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
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