Solved: Customer-specific customer skin

Moderator: crythias

Locked
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Solved: Customer-specific customer skin

Post by RBehr »

We would like to customise the customer skin based on the customer - at the most basic, we would like to change the logo depending on which customer has logged in to the customer portal.

How would this be achieved?
Last edited by RBehr on 13 Jul 2011, 17:59, edited 3 times in total.
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer-specific customer skin

Post by crythias »

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
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Re: Customer-specific customer skin

Post by RBehr »

Thanks, Crythias. That helped, and I have implemented it.

However, we have customers all belonging to a single Group (also a customer) So multiple individuals work for a single company, each is a customer that belongs to a Group.

Instead of creating a logo file for each individual called [CustomerID].png, I would like to expose the Group and assign the Group a .png file. So where I would use

Code: Select all

$Config{"Frontend::WebPath"}/skins/Customer/default/img/customers/$Env{"UserCustomerID"}.PNG
I would prefer to use

Code: Select all

$Config{"Frontend::WebPath"}/skins/Customer/default/img/customers/$Env{"UserGroupID"}.PNG
How do I expose the Group? $Env{"UserGroupID"} obviously doesn't work.

Many thanks
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer-specific customer skin

Post by crythias »

You might want to read this: http://forums.otrs.org/viewtopic.php?f=60&t=7531 and consider having all of the same company using the same CustomerID. Group won't work because customers can be members of multiple groups.

Alternatively, you might use a javascript function to extract the domain from the CustomerID.
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
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Re: Customer-specific customer skin

Post by RBehr »

We had approached the CustomerID as a UID for each PERSON rather than the customer they word for. So the CustomerID need not be unique and could actually refer to our Customer Account number for the company whom the individual works for? That would certainly help. Is this the case?
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Customer-specific customer skin

Post by crythias »

http://forums.otrs.org/viewtopic.php?f=60&t=7531

(CustomerID need not be unique.)
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