Hi,

Setting "enabled" to false should hide it, whatever change you make on the filter.

If you have a duplicate action, that means you have two actions with a different id, could you check where each comes from? (the action id will be visible in the url, look at the tabId request parameter).

Also maybe the deployment order has changed, could you make sure your plugin is deployed after the archive one by adding:

<require>org.nuxeo.ecm.platform.archive.web</require>

Thanks

Sean Radford a écrit :
Hi,

Has the mechanism to hide tabs changed recently?

I have a plugin that I'm deploying simply to hide the Archive tab but all I'm getting is a duplicate Archive tab (It used to work on an earlier build).

I've tried by setting the enabled attribute to false and by extending the 'false' grant rule to include all document types - but with no success.

<action id="TAB_CONTENT_ARCHIVE" link="/incl/tabs/document_archive.xhtml" enabled="false"
   label="action.view.archive" icon="/icons/file.gif" order="120">
 <category>VIEW_ACTION_LIST</category>
 <filter-id>view_content_archive</filter-id>
 <filter-id>mutable_document</filter-id>
</action>

and

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
 <filter id="view_content_archive">
   <rule grant="false">
     <type>WorkspaceRoot</type>
     <type>Workspace</type>
     <type>SectionRoot</type>
     <type>Section</type>
     <type>Domain</type>
     <type>Server</type>
     <type>Folder</type>
     <type>File</type>
     <type>Note</type>
     <type>Forum</type>
   </rule>
 </filter>
</extension>

Any ideas what I'm doing wrong?

Thanks,

Sean

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to