Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.mail.web.types.contrib--types

This contribution is part of XML component org.nuxeo.ecm.platform.mail.web.types.contrib inside nuxeo-platform-mail-web-5.6.jar

Extension point

Extension point types of component TypeService.

Contributed items

  • <type id="MailMessage">
          <label>MailMessage</label>
          <icon>/icons/mail.png</icon>
          <bigIcon>/icons/mail_100.png</bigIcon>
          <category>SimpleDocument</category>
          <default-view>view_documents</default-view>
          <layouts mode="any">
            <layout>mailMessage</layout>
            <layout>noLabelFiles</layout>
          </layouts>
          <layouts mode="edit">
            <layout>mailMessage</layout>
            <layout>noLabelFiles</layout>
            <layout>dublincore</layout>
          </layouts>
          <!-- files content already on summary page -->
          <layouts mode="view">
            <layout>mailMessage</layout>
          </layouts>
        </type>
  • <type id="MailFolder">
          <label>MailFolder</label>
          <icon>/icons/mail_folder.png</icon>
          <bigIcon>/icons/mailfolder_100.png</bigIcon>
          <category>Collaborative</category>
          <default-view>view_documents</default-view>
          <layouts mode="any">
            <layout>mail_folder</layout>
          </layouts>
          <layouts mode="listing">
            <layout>mail_listing</layout>
            <layout>document_listing</layout>
          </layouts> 
          <subtypes>
            <type>MailMessage</type>
          </subtypes>
        </type>
  • <type id="Workspace">
          <subtypes>
            <type>MailFolder</type>
          </subtypes>
        </type>

XML source

<extension point="types" target="org.nuxeo.ecm.platform.types.TypeService">

    <type id="MailMessage">
      <label>MailMessage</label>
      <icon>/icons/mail.png</icon>
      <bigIcon>/icons/mail_100.png</bigIcon>
      <category>SimpleDocument</category>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>mailMessage</layout>
        <layout>noLabelFiles</layout>
      </layouts>
      <layouts mode="edit">
        <layout>mailMessage</layout>
        <layout>noLabelFiles</layout>
        <layout>dublincore</layout>
      </layouts>
      <!-- files content already on summary page -->
      <layouts mode="view">
        <layout>mailMessage</layout>
      </layouts>
    </type>

    <type id="MailFolder">
      <label>MailFolder</label>
      <icon>/icons/mail_folder.png</icon>
      <bigIcon>/icons/mailfolder_100.png</bigIcon>
      <category>Collaborative</category>
      <default-view>view_documents</default-view>
      <layouts mode="any">
        <layout>mail_folder</layout>
      </layouts>
      <layouts mode="listing">
        <layout>mail_listing</layout>
        <layout>document_listing</layout>
      </layouts> 
      <subtypes>
        <type>MailMessage</type>
      </subtypes>
    </type>

    <!-- allow mail floders within workspaces -->
    <type id="Workspace">
      <subtypes>
        <type>MailFolder</type>
      </subtypes>
    </type>

  </extension>