Platform Explorer / Nuxeo Platform 5.6

Component org.nuxeo.dam.theme

Services

Extension points

Contributions

XML source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.dam.theme">

  <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/nuxeo-dam.xml</src>
    </theme>

  </extension>


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

    <view name="dam search filters" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>dam/incl/search_filter.xhtml</template>
    </view>

    <view name="dam filtered search results" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>dam/incl/filtered_search_results.xhtml</template>
    </view>

    <view name="dam selection view" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>dam/incl/selection_view.xhtml</template>
    </view>

    <view name="dam includes" template-engine="jsf-facelets">
      <format-type>widget</format-type>
      <template>dam/incl/dam_includes.xhtml</template>
      <resource>nuxeo-dam.js</resource>
    </view>

  </extension>

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

    <resource name="nuxeo-dam.js">
      <path>dam/scripts/nuxeo-dam.js</path>
    </resource>

  </extension>

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

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

      <view id="/dam/assets.xhtml">
        <theme>dam/default</theme>
      </view>

    </application>

  </extension>

  <!-- mapping between theme pages and resources -->
  <extension target="org.nuxeo.theme.styling.service" point="pages">

    <themePage name="dam/default">
      <defaultFlavor>default</defaultFlavor>
      <flavors>
        <flavor>default</flavor>
        <flavor>rainbow</flavor>
      </flavors>
      <styles>
        <style>basics</style>
        <style>buttons_and_actions</style>
        <style>header</style>
        <style>body</style>
        <style>footer</style>
        <style>navigation</style>
        <style>tables</style>
        <style>forms</style>
        <style>popups</style>
        <style>messages_and_tooltips</style>
        <style>nuxeo_dam_specific</style>
      </styles>
    </themePage>

  </extension>

  <extension target="org.nuxeo.theme.styling.service" point="styles">
    <style name="nuxeo_dam_specific">
      <src>themes/css/nuxeo_dam_specific.css</src>
    </style>
  </extension>

</component>

Documentation