Custom skin in 3.x

Moderator: crythias

Post Reply
ptay
Znuny newbie
Posts: 85
Joined: 13 Jul 2010, 18:55
Znuny Version: 5.0.10

Custom skin in 3.x

Post by ptay »

Anyone get a custom skin to work following directions on http://doc.otrs.org/developer/3.0/en/ht ... html#skins page? I'm following steps outlined in 2.1.4.3. Creating a New Skin.

/opt/otrs/var/httpd/htdocs/skins/Agent/custom/css/Core.Header.css file contents:

Code: Select all

{
#Logo {
    background: url(../img/custom-logo.png) no-repeat;
    height: 67px; /* specify height and width to match your logo's dimensions */
    width: 224px;
    /* optional: specify "top" and "right" to reposition the logo on the screen */
}
/opt/otrs/var/httpd/htdocs/skins/Agent/custom/img/custom-logo.png is simple white image @ 67px x 224px (for testing, kept it simple)

/opt/otrs/Kernel/Config/Files/CustomSkin.xml file contents:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
    <ConfigItem Name="Loader::Agent::Skin###100-custom" Required="0" Valid="1">
        <Description Translatable="1">Custom skin for the development manual.</D
escription>
        <Group>Framework</Group>
        <SubGroup>Frontend::Agent</SubGroup>
        <Setting>
            <Hash>
                <Item Key="InternalName">custom</Item>
                <Item Key="VisibleName">Custom</Item>
                <Item Key="Description">Custom skin for the development manual.<
/Item>
                <Item Key="HomePage">www.mycorp.com</Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
I ran otrs.RebuildConfig.pl script then logged in with two different Agents. Both Agents did not have any custom skin under Preferences. I then went to Admin > SysConfig and searched for Frontend::Agent then changed DefaultSkin from default to custom. I logged in/out with Agents and still no custom skin.

Curious if anyone else has successfully set up a custom skin.
Thanks
Test:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Daniel Obee
Moderator
Posts: 644
Joined: 19 Jun 2007, 17:11
Znuny Version: various
Real Name: Daniel Obée
Location: Berlin

Re: Custom skin in 3.x

Post by Daniel Obee »

Same here. The skin config is visible in the SysConfig, but no chance to get it displayed in the agent preferences...

Did it work out for you in the meantime?

Greets
Daniel
Joool
Znuny newbie
Posts: 16
Joined: 06 Oct 2010, 15:21
Znuny Version: 3.0

Re: Custom skin in 3.x

Post by Joool »

You need to set the same permissions for your newly created folder (e.g. /opt/otrs/var/httpd/htdocs/skins/Customer/custom/) as you have on your default folder. Also do this on the folders css-cache, css and img.
Running: OTRS 3.0.10
Testing: OTRS 3.1.1
On Ubuntu Server 10.4
Post Reply