Different Logo and Header for any Company

Moderator: crythias

Locked
nima0102
Znuny newbie
Posts: 29
Joined: 12 Jul 2010, 14:44
Znuny Version: 2.4

Different Logo and Header for any Company

Post by nima0102 »

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
bin
Znuny newbie
Posts: 29
Joined: 06 Jan 2011, 10:29
Znuny Version: 3

Re: Different Logo and Header for any Company

Post by bin »

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
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
crythias
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

Post by crythias »

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:

Code: Select all

  <tr>
    <td width="120" class="header"> LOGO </td>
    <td class="header"> <a href="" class="headeritem">COMPANY NAME</a> </td>
  </tr>
So, maybe something like:

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>
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.
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
jamlydm
Znuny newbie
Posts: 14
Joined: 24 Mar 2011, 23:03
Znuny Version: 3.0.6

Re: Different Logo and Header for any Company

Post by jamlydm »

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 -->
    <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>
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.
sreejith
Znuny newbie
Posts: 4
Joined: 02 Apr 2013, 08:23
Znuny Version: 3.1.12

Re: Different Logo and Header for any Company

Post by sreejith »

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
crythias
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

Post by crythias »

sreejith wrote:Now I want customer's groupID in place of CustomerID.
There's no practical way to do this. A customer can be a member of hundreds of groups.

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
sreejith
Znuny newbie
Posts: 4
Joined: 02 Apr 2013, 08:23
Znuny Version: 3.1.12

Re: Different Logo and Header for any Company

Post by sreejith »

crythias wrote: There's no practical way to do this. A customer can be a member of hundreds of groups.
...".
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 confused :) Any other way to achieve this.

Thanks
crythias
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

Post by crythias »

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
Locked