Custom skin for Customer not registered

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 for Customer not registered

Post by SuperDOS »

Is there something extra needed to add custom skin for Customer in OTRS 6?

../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>
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Custom skin for Customer not registered

Post by reneeb »

Did you run

Code: Select all

perl bin/otrs.Console.pl Maint::Config::Rebuild
after you've added the XML? Is the XML stored in $OTRS_HOME/Kernel/Config/Files/XML/*.xml? Are there any messages in the logfile(s)?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom skin for Customer not registered

Post by SuperDOS »

Yep the files are there and have rebuilt the config.
Nothing in the logs.

Doesn't appear in the sysconfig, my Agent skin/theme does though.
lido
Znuny newbie
Posts: 70
Joined: 25 Oct 2017, 16:21
Znuny Version: 6.0.5

Re: Custom skin for Customer not registered

Post by lido »

Try this:

- Copy your old skin xml from v5 into Kernel/Config/Files
- Run "bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure"

This should migrate your old xml into the new Kernel/Config/Files/XML folder with the correct changes

Then clear and rebuild config/cache

Code: Select all

bin/otrs.Console.pl Maint::Config::Rebuild
bin/otrs.Console.pl Maint::Cache::Delete
bin/otrs.Console.pl Maint::Loader::CacheCleanup
bin/otrs.Console.pl Maint::Loader::CacheGenerate

Please see my reply here on the thread I posted also with the same issue, although I did the changes manually at the time since I didn't know this Console command then.
SuperDOS
Znuny newbie
Posts: 93
Joined: 17 Apr 2012, 16:16
Znuny Version: 6.0.3
Real Name: A!

Re: Custom skin for Customer not registered

Post by SuperDOS »

Thanks, I ended up cleaning out all old XML files and started over with files XML files from a clean 6.0.3 installation.
Now it works.

Ran these commands after.
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Cache::Delete" -s /bin/bash otrs
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Config::Rebuild" -s /bin/bash otrs
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Loader::CacheCleanup" -s /bin/bash otrs
su -c "/opt/otrs/bin/otrs.Console.pl Maint::Loader::CacheGenerate" -s /bin/bash otrs
Post Reply