Hi,
 
I've created my own theme, and it is working correctly when I select it from 
the 'Themes' action.
 
I've tried to set it as default, following the instructions described in 
chapter 12 of the Nuxeo book, and also looking at this thread 
(http://www.nuxeo.org/discussions/thread.jspa?threadID=1725), but it's not 
working. Nuxeo always uses the 'galaxy' theme as default instead of mine.

Can anybody tell me what I'm missing?


My theme (theme-atos.xml):

<?xml version="1.0" encoding="UTF-8"?>
<theme name="atos" template-engines="jsf-facelets">
  ...
</theme>


My MANIFEST.MF:

Manifest-Version: 1.0
Bundle-ManifestVersion: 1
Bundle-Name: NuxeoAtosTheme
Bundle-SymbolicName: com.atosorigin.nuxeo.theme
Bundle-Localization: plugin
Bundle-Vendor: Atos Origin
Bundle-Category: web
Nuxeo-Require: org.nuxeo.ecm.core,
 org.nuxeo.ecm.webapp.core
Nuxeo-RequiredBy: org.nuxeo.ecm.platform.placeful.theme
Nuxeo-Component: OSGI-INF/custom-theme-contrib.xml


My contribution (custom-theme-contrib.xml), basically copied from the 
nuxeo-platform-webapp-core theme-contrib.xml, and replaced 'galaxy' with my 
theme name:

<component name="com.atosorigin.nuxeo.theme.contrib">

  <require>org.nuxeo.theme.core</require>
  <require>org.nuxeo.theme.fragments</require>
  <require>org.nuxeo.theme.html</require>
  <require>org.nuxeo.theme.jsf</require>

  <!--  Themes -->
  <extension target="org.nuxeo.theme.services.ThemeService" point="themes">

    <theme>
      <src>themes/theme-atos.xml</src>
    </theme>

  </extension>

  <!-- Views -->
  <extension target="org.nuxeo.theme.services.ThemeService" point="views">

    <view name="Nuxeo DM logo (Atos Theme)" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>incl/logo_atos_ge.xhtml</template>
    </view>

    <view name="User services (Atos Theme)" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>incl/user_services_galaxy.xhtml</template>
      <resource>screen.css</resource>
    </view>

    <view name="Nuxeo DM footer (Atos Theme)" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>incl/footer_galaxy.xhtml</template>
    </view>

  </extension>

  <!-- Styles presets -->
  <extension target="org.nuxeo.theme.services.ThemeService" point="presets">

    <palette name="Atos borders" category="border"
      src="themes/palettes/atos-borders.properties" />
    <palette name="Atos backgrounds" category="background"
      src="themes/palettes/atos-backgrounds.properties" />
    <palette name=" Atos fonts" category="font"
      src="themes/palettes/ atos-fonts.properties" />
    <palette name=" Atos colors" category="color"
      src="themes/palettes/ atos-colors.properties" />

  </extension>

  <!-- Application settings -->
  <extension target="org.nuxeo.theme.services.ThemeService"
    point="applications">

    <application root="${org.nuxeo.ecm.contextPath}" 
template-engine="jsf-facelets">

      <negotiation>
        <strategy>nuxeo5</strategy>
        <default-engine>default</default-engine>
        <default-theme>atos/default</default-theme>
        <default-perspective>default</default-perspective>
      </negotiation>

      <!-- Cache control for theme resources (/nxthemes-lib/) -->
      <resource-caching>
        <lifetime>36000</lifetime>
      </resource-caching>

      <!-- Cache control for theme styles (/nxthemes-css/) -->
      <style-caching>
        <lifetime>900</lifetime>
      </style-caching>

      <view id="/create_relation_search_document_popup.xhtml">
        <theme>atos/popup</theme>
      </view>
      <view id="/user_dashboard.xhtml">
        <theme>atos/user_dashboard</theme>
      </view>
      <view id="/view_calendar.xhtml">
        <perspective>view_calendar</perspective>
      </view>
      <view id="/print.xhtml">
        <perspective>print</perspective>
      </view>
      <view id="/editor_link_search_document.xhtml">
        <theme>atos/popup</theme>
      </view>
      <view id="/editor_image_upload.xhtml">
        <theme>atos/popup</theme>
      </view>
      <view id="/search/choose_searchscope_popup.xhtml">
        <theme>atos/popup</theme>
      </view>
    </application>

  </extension>

</component>


Thank you very much.


Daniel Pérez Álvarez

Technological Solutions
Atos Origin
+34 91 126 7310
C/ Albasanz, 16
28037 Madrid
Spain


Daniel Pérez Álvarez

Technological Solutions
Atos Origin
+34 91 126 7310
C/ Albasanz, 16
28037 Madrid
Spain


------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos Origin 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas 
partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to