...
How to change the backoffice default Visual Theme
At the moment there is not a specific User Interface where the default theme can be set by the administrator and for this reason this setting must be done in the seed data files that are loaded during the database setup.
The seed data for this setting isThe Visual Theme that is used as default is defined in the file: /framework/common/data/CommonTypeData.xml
For example, to set the chrome theme as default, replace the line:
...
The simplest way to create a Visual Theme is starting from one of the already available themes in the OFBiz themes folder.
Panel |
---|
NOTE: |
Let's say you want to create a new theme for the backoffice applications called mytheme and have selected bluelight as a starting template.
- Create a new /themes/mytheme folder and copy there all files from the /themes/bluelight folder.
- Rename the folder /themes/mytheme/webapp/bluelight to /themes/mytheme/webapp/mytheme
- Delete all files from the /themes/mytheme/includes folder and add your own header and/of footer files if needed
- Delete all files from the /themes/mytheme/webapp/mytheme folder and add your own css files and images
Panel |
---|
NOTE: |
- Edit the file /themes/mytheme/data/ThemeData.xml as follows:
- change the visualThemeId from "BLUELIGHT" to "MYTHEME"
- if your theme is intended to be used for the Ecommerce application set the visualThemeTypeId="ECOMMERCE"
- if your theme is intended to be used for the backoffice applications set the visualThemeTypeId="BACKOFFICE"
- Change all VisualThemeResource lines to include references to you theme files
...