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
Add your picture
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
Create your logo fragment
Duplicate the nuxeo file logo_DM_galaxy.xhtml, present in:
Paste it in your custom incl folder, here:
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:
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: