There are 4 steps:
- add your picture in the sources,
- create your fragment "My Project Logo",
- call it in your theme file,
- and restart your server.
In your custom project, it will be played out in /src/main/resources/.
Add your picture
In the nuxeo.war/img/ directory, add your logo.
You can add here all the pictures for your app (background pictures, etc ...)
For the icons, create an icons folder in nuxeo.war.
Create your logo fragment
Duplicate the nuxeo file logo_DM_galaxy.xhtml, present in: /nuxeo-dm/nuxeo-platform-webapp/src/main/resources/nuxeo.war/incl/
Paste it in your custom incl folder, here: my-project/**/src/main/resources/nuxeo.war/incl/
Replace in the file the name of your logo, corresponding size, path... You could also change the name of the file into my_project_logo.xhtml for example.
To register your new file as a fragment, open your custom file: my-project/**/src/main/resources/OSGI-INF/my_project_theme_contrib.xml.
Add this registration tag:
Your logo is now created, and registered as a fragment for the Theme Editor. You only have to call it in your theme file now.
Call your logo in the theme file
With the Theme Editor, once your server is relaunched, add your fragment on corresponding files, on your choosen theme.
With the sources files: in resources/themes/my_theme.xml, replace all the "Nuxeo DM logo (Galaxy Theme)" by what you write in name tag when you save it (here, "My Project Logo").
Save and launch your server
Your logo is registered and deployed!
|
If you're using Opensocial, which need its own theme file, you have also to replace Nuxeo DM logo (Galaxy Theme) by your fragment name. If you're not overriding the OpenSocial theme file, declare it on your custom Opensocial theme file is now here, in the default nuxeo sources: |