Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.preview.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.preview.actions inside nuxeo-platform-preview-5.6.jar

Extension point

Extension point actions of component ActionService.

Contributed items

  • <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>view_preview</filter-id>
        </action>
  • <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>view_preview</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>not_anonymous</filter-id>
          <properties>
            <property name="iframe">
              #{previewActions.getCurrentDocumentPreviewPopupURL()}
            </property>
          </properties>
        </action>

XML source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- disable the old tab as we now use the showPreviewPopup action  -->
    <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview</filter-id>
    </action>

    <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
      </properties>
    </action>

  </extension>