09-24-2012 12:31 PM
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>
09-26-2012 07:58 AM
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:
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.
09-25-2012 09:30 AM
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.
09-25-2012 10:39 AM
Already declared the contribution in "src/main/resources/META-INF/MANIFEST.MF"
09-25-2012 10:45 AM
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.
09-26-2012 07:31 AM
I would like to customize views. For example
09-26-2012 07:53 AM
I modify your question with the following information...
09-26-2012 07:58 AM
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:
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.
09-26-2012 08:02 AM
Do it with Nuxeo IDE, you will just be sure that your contribution is deployed after the Nuxeo default one adding the require
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.