2

I want to change my nuxeo application logo. I've read how to change it for login page and it's working , but now i want to change logo for all my page and i can't find any tutorial of how to do this. Here is what i've tried so far:

    <component name="org.nuxeo.sample.loginPage">
  <extension target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService" point="loginScreen">
    <loginScreenConfig>
      <disableBackgroundSizeCover>false</disableBackgroundSizeCover>
      <headerStyle></headerStyle>
      <footerStyle></footerStyle>
     <loginBoxWidth>400px</loginBoxWidth>
      <logoUrl>${org.nuxeo.ecm.contextPath}/img/logo12.png</logoUrl>
      <logoAlt>MyCompany</logoAlt>
      <logoWidth>113</logoWidth>
      <logoHeight>20</logoHeight>
       <newsIframeUrl>https://www.nuxeo.com/embedded/dm-login</newsIframeUrl>
    </loginScreenConfig>
  </extension>
</component>
ItShine
  • 349
  • 1
  • 4
  • 22

1 Answers1

0

You got it for the login screen. For the other pages, give a look at the org.nuxeo.theme.styling.service component and its flavors extension point.

You will need such an XML contribution:

<extension target="org.nuxeo.theme.styling.service" point="flavors">
  <flavor name="myCompanyFlavor" extends="default">
    <logo>
      <path>/img/logo12.png</path>
      <previewPath>/img/logo12.png</previewPath>
      <width></width>
      <height></height>
      <title>MyCompany</title>
    </logo>
  </flavor>
</extension>
Julien Carsique
  • 3,915
  • 3
  • 22
  • 28
  • thank you, i tried this but i can't get to work , can you give me more details i mean what should I add in the other files , or just give me some tutorial ? – ItShine Jun 08 '15 at 10:29
  • The easier is to use Nuxeo Studio and look at the generated extension point. You can also try with Nuxeo IDE for Eclipse. – Julien Carsique Jun 08 '15 at 11:03
  • Actually, i'm using Nuxeo IDE for Eclipse – ItShine Jun 08 '15 at 11:17
  • Nice. Which Nuxeo version do you use? Don't you have some related logs? If the first contribution works, the one I provided should work too... – Julien Carsique Jun 08 '15 at 11:19
  • I'm using version 6, in order to change login page logo , i'va created a login-contrib.xml and add it in manifest.mf , but i don't know how to add the one you gave to me , can you list all the steps. Thank you for your help – ItShine Jun 08 '15 at 11:24