Platform Explorer / CMF 1.8

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.4.2-HF05.jar

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action enabled="true" 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">
            <rule grant="true">
              <condition>#{previewActions.hasPreview}</condition>
            </rule>
            <rule grant="false">
              <facet>Folderish</facet>
            </rule>
          </filter>
        </action>
  • <action enabled="true" icon="/icons/view_pdf.gif" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
          <category>POPUP</category>
          <filter id="popup_view_preview">
            <rule grant="true">
              <condition>#{previewActions.documentHasPreview(document)}</condition>
            </rule>
            <rule grant="false">
              <facet>Folderish</facet>
            </rule>
          </filter>
        </action>

XML Source

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

    <action enabled="true" 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">
        <rule grant="true">
          <condition>#{previewActions.hasPreview}</condition>
        </rule>
        <rule grant="false">
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>
    
    <action enabled="true" icon="/icons/view_pdf.gif" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
      <category>POPUP</category>
      <filter id="popup_view_preview">
        <rule grant="true">
          <condition>#{previewActions.documentHasPreview(document)}</condition>
        </rule>
        <rule grant="false">
          <facet>Folderish</facet>
        </rule>
      </filter>
    </action>
  </extension>