[SOLVED] Cannot Hook HTML changes

Moderator: crythias

Locked
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

[SOLVED] Cannot Hook HTML changes

Post by jason123 »

Hello,

I am trying to change the HTML on the site and am having a hard time getting the system to hook my changes. I am working with OTRS 5.

In the documentation (http://otrs.github.io/doc/manual/admin/ ... hemes.html) it specifies to do the following:
  • 1. Create a directory called Kernel/Output/HTML/Company and copy all files that you like to change, from Kernel/Output/HTML/Standard into the new folder.
    2. Customize the files in the directory Kernel/Output/HTML/Company, and change the layout to your needs.
    3. To activate the new theme, add them in SysConfig under Frontend::Themes.
I followed these steps but cannot seem to get my HTML changes to hook.

For step 1, since the change from Kernel/Output/HTML/Standard to Kernel/Output/HTML/Templates/Standard, I have tried copying my modified <my_theme>/*.tt files into both the Templates dir and the Standard dir.

For step 3, I have tried configuring the Framework.xml file to the following:

Code: Select all

   <ConfigItem Name="Frontend::Themes" Required="0" Valid="1">
        <Description Translatable="1">Activates the available themes on the system. Value 1 means active, 0 means inactive.</Description>
        <Group>Framework</Group>
        <SubGroup>Core::Web</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Standard">1</Item>
                <Item Key="<my_theme>">1</Item>
                <Item Key="Lite">0</Item>
            </Hash>
        </Setting>
    </ConfigItem>
My theme name shows up in the Admin/SysConfig on the site, but no customizations are seen across the site.

Any guidance on what I am doing wrong here would be much appreciated.

Thanks,
Jason
Last edited by jason123 on 06 Jun 2016, 14:04, edited 1 time in total.
jason123
Znuny newbie
Posts: 33
Joined: 25 Apr 2016, 15:27
Znuny Version: OTRS 5

Re: Cannot Hook HTML changes [Solved]

Post by jason123 »

Solved this.

Process

1. Navigate to the Kernel/Output/HTML/Templates/ dir.
2. Create a dir with the name of the theme you want to create.
For example: Kernel/Output/HTML/Templates/<custom_theme_dir>
3. Copy over files from the Kernel/Output/HTML/Templates/Standard dir.
Only copy the files that contain the HTML you want to change.
4. Modify the HTML in the files copied over to your theme.
5. In the web browser navigate to 'Admin/SysConfig/Framework/Core/Default Theme'.
6. Change the default theme from Standard to the name of the directory your custom theme.
This can be configured in the Kernel/Config/Files dir.
Still trying to figure out how to not wipe out the site settings when running the './bin/otrs.Console.pl Maint::Config::Rebuild' command.
7. Update the configuration.
Locked