I have registered an alternate view "Excelfile to Datatables" for IFile.
Is it possible to set/configure the action for select default view in the "Display Menu" conditional, based on the mimetype of the file? What i mean is, the action "selectViewTemplate" should only available, if the file has a certain mimetype.
<!-- configure.zcml snippet -->
<!-- alternative fileview, Excel to Datatables-->
<browser:page
name="excel_to_table_view"
for="plone.app.contenttypes.interfaces.IFile"
class="my.addon.browser.views.ExcelToTableView"
layer="my.addon.interfaces.IMyAddonLayer"
template="templates/excel-to-table-view.pt"
permission="zope2.View"
menu="plone_displayviews"
title="Excel to Datatables"
condition="..???.."
expression="..???.." />