Chapter 14. Creating your own themes

From open-support.info

< Book:OTRS 3.0 - Admin Manual(Difference between revisions)
Jump to: navigation, search
m (1 revision: Update book/figure)
 
(2 intermediate revisions not shown)
Line 17: Line 17:
<li>
<li>
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.  
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.  
-
 
{{fmbox
{{fmbox
|type= caution
|type= caution
|text= Only copy over the files you actually change. OTRS will automatically get the missing files from the Standard theme. This will make upgrading at a later stage much easier.
|text= Only copy over the files you actually change. OTRS will automatically get the missing files from the Standard theme. This will make upgrading at a later stage much easier.
}}
}}
-
 
</li>
</li>
 +
<li>
<li>
Customize the files in the directory Kernel/Output/HTML/Company, and change the layout to your needs.  
Customize the files in the directory Kernel/Output/HTML/Company, and change the layout to your needs.  
</li>
</li>
 +
<li>
<li>
To activate the new theme, add them in SysConfig under Frontend::Themes.  
To activate the new theme, add them in SysConfig under Frontend::Themes.  

Latest revision as of 05:24, 24 April 2011

You can create your own themes so as to use the layout you like in the OTRS web frontend. To create own themes, you should customize the output templates to your needs.

More information on the syntax and structure of output templates can be found in the Developer Manual at http://doc.otrs.org, especialy in the chapter on templates.

As an example, perform the following steps to create a new theme called "Company":

  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.


Now the new theme should be useable. You can select it via your personal preferences page. WarningDo not change the theme files shipped with OTRS, since these changes will be lost after an update. Create your own themes only by performing the steps described above

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox