Custom Skin not registered OTRS 6

Moderator: crythias

Post Reply
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Custom Skin not registered OTRS 6

Post by SuperDOS »

Upgraded to OTRS 6 and now my custom skin isn't registered so you can choose it.
The theme works.
Made a new XML file and added it to the Config dir and rebuild the config, but still it does't show under sysconfig.
Anything different from OTRS 5 that needs to be done?
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Custom Skin not registered OTRS 6

Post by zzz »

Hello SuperDOS,

this topic might help: viewtopic.php?f=62&t=38326&p=155237

Best regards
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

thanks just what i needed
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Hmm any idea why no icons is showing? doesn't help to change back to default theme/skin.
have cleared the cache.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Custom Skin not registered OTRS 6

Post by zzz »

What do you mean by icons?

Have you checked your browsers console for any JavaScript errors?
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Image
no console errors.
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

has it something to do with /opt/otrs/Kernel/Output/JavaScript/Templates ?
Not sure the function of this yet.
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Custom Skin not registered OTRS 6

Post by zzz »

These are normal Font Awesome icons defined in the Defaults.pm (for the admin area, at least).

Does var/httpd/htdocs/common/css/ contain a css file and a few fonts?
Does your HTML source code contain any class starting with 'fa fa-'? If so, you probably messed up with some configs and Font Awesome is not getting loaded.

Try adding class 'fa fa-paperclip' to a random div to see if anything appears.

Also try a hard page refresh in your browser and a CacheCleanup in the console if Loader::Enabled::CSS is not disabled.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Hmm there's only font-awesome.min.css in the folder.
But on another test system where the icons works there is no font files in that directory either.

Tried clear caching and another browser.

nothing showed when adding a div with fa fa-paperclip

also did a yum reinstall of the otrs rpm
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Custom Skin not registered OTRS 6

Post by zzz »

The '/css' was too much, but it looks like missing files are not the problem :lol:

Kernel/Output/HTML/Templates/Standard/HTMLHead.tt loads Font Awesome.

I'd guess you have changed that file in your old custom theme and installed it in OTRS 6, without making any changes to the file.
If CustomerHTMLHead is untouched in your theme, the icons should work in the customer front end.

If that's the case, you should copy HTMLHead.tt and add your custom changes to that file.

More errors might occur if you did not fully update your theme.

Best regards
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Thanks, I forgot I added <meta name="format-detection" content="telephone=yes" /> to my HTMLHead.tt

works now
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Is there something extra needed to add custom skin for Customer?
Tried doing the same as for Agent skin but feels like something is missing.

../Config

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
    <ConfigItem Name="Loader::Customer::Skin###101-test-Cust" Required="0"
 Valid="1">
        <Description Translatable="1">Test Customer Skin</Description>
        <Group>Framework</Group>
        <SubGroup>Frontend::Customer</SubGroup>
        <Setting>
 <Hash>
                <Item Key="InternalName">test-Cust</Item>
                <Item Key="VisibleName">test-Cust</Item>
                <Item Key="Description">Test Customer Skin</Item>
                <Item Key="HomePage">www.test.com</Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
../Config/XML

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="2.0" init="Changes"> 
    <ConfigItem Name="Loader::Customer::Skin###101-test-Cust" Required="0"
 Valid="1">
        <Description Translatable="1">Test Customer Skin</Description>
        <Group>Framework</Group>
        <SubGroup>Frontend::Customer</SubGroup>
        <Setting>
 <Hash>
                <Item Key="InternalName">test-Cust</Item>
                <Item Key="VisibleName">test-Cust</Item>
                <Item Key="Description">Test Customer Skin</Item>
                <Item Key="HomePage">www.test.com</Item>
            </Hash>
        </Setting>
    </ConfigItem>
</otrs_config>
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom Skin not registered OTRS 6

Post by SuperDOS »

Anyone know what's needed to be done with Customer skins in OTRS 6?
Post Reply