cancel
Showing results for 
Search instead for 
Did you mean: 

How to modified part of the DM UI for instance the footer ?

ITassas_
Champ on-the-rise
Champ on-the-rise

I would like to override the footer for instance with my xhtml fragment.

I try to create my own theme and deploy it, but doesn't work

<?xml version="1.0"?>
<fragment version="1">
<install>
    <unzip from="${bundle.fileName}" to="/" prefix="web">
      <include>web/nuxeo.war/**</include>
    </unzip>
  </install>
  <extension target="application#MODULE">
    <module>
      <java>${bundle.fileName}</java>
    </module>
  </extension>
  
</fragment>
1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

The best way is to override the default theme view fragment. For that you just have to name it with the same name. The footer fragment is Nuxeo footer. So if you want to add it, you can do it with Nuxeo Studio with the following steps:

  • Resources > Choose File... into the Widget Template section
  • Download your xhtml fragment, I assume you name it your_footer.xhtml
  • Go to Advanced Settings > XML Contribution > New
  • Give a name of your choice

Fill with the following content:

  <extension target="org.nuxeo.theme.services.ThemeService" point="views">
    <view name="Nuxeo footer" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>widgets/your_footer.xhtml</template>
    </view>
  </extension>

That's all I think.

View answer in original post

7 REPLIES 7

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

If you are talking about contributions to "org.nuxeo.theme.services.ThemeService" component, the theme is a contribution as others, you have to declare the file into the "src/main/resources/META-INF/MANIFEST.MF" file into the Nuxeo-Component section.

Already declared the contribution in "src/main/resources/META-INF/MANIFEST.MF"

Did you name your theme with the same name of Nuxeo one ? and add a require item to the default Nuxeo definition. Or did you set your theme as the default one.

I would like to customize views. For example

I modify your question with the following information...

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

The best way is to override the default theme view fragment. For that you just have to name it with the same name. The footer fragment is Nuxeo footer. So if you want to add it, you can do it with Nuxeo Studio with the following steps:

  • Resources > Choose File... into the Widget Template section
  • Download your xhtml fragment, I assume you name it your_footer.xhtml
  • Go to Advanced Settings > XML Contribution > New
  • Give a name of your choice

Fill with the following content:

  <extension target="org.nuxeo.theme.services.ThemeService" point="views">
    <view name="Nuxeo footer" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>widgets/your_footer.xhtml</template>
    </view>
  </extension>

That's all I think.

Do it with Nuxeo IDE, you will just be sure that your contribution is deployed after the Nuxeo default one adding the require