No files-tab with certain types of documents.

Hi all, You can add files to a document with the files-tab. But you can't do this with pictures. (.jpg, .png, .gif etc.) Why is that?

Regards,

Johanka

1 votes

1 answers

1080 views

ANSWER



Below code can solve your problem.

    <extension target="org.nuxeo.ecm.platform.actions.ActionService"
            point="actions">
            <action id="FileTab" link="/studio_tabs/studio_tab_FileTab.xhtml"
        order="0" label="action.view.summary" type="rest_document_link">
        <category>VIEW_ACTION_LIST</category>
        <filter id="filter@tab@FileTab">
            <rule grant="false">
                <!-- <type>File</type> -->
                <type>Picture</type>
                <type>YourOwnFileType</type>
            </rule>
        </filter>
    </action>
</extension>
1 votes



Sorry for late answer, Pradeep. But thank you! We will have a look at it.
08/19/2016